You use the command casout to start a batch initiator or batch printer SEP from the command line. Before you use casout, you must already have started the enterprise server using the command casstart.
The following commands start a batch initiator SEP for the classes A, B and C on the enterprise server JCLDEMO.
casstart -rJCLDEMO start casout -iABC -rJCLDEMO
The following commands start a batch printer SEP for the class A on the enterprise server JCLDEMO using the printer defined on your machine as "HP LaserJet 4L".
casstart -rJCLDEMO start casout -bA -n"HP LaserJet 4L" -rJCLDEMO
The following commands are the same as above, with the addition of a printer exit (SAMPPRNX) installed, to gain more control over the output handling.
casstart -rJCLDEMO start casout -bA -n"HP LaserJet 4L" -rJCLDEMO -xSAMPPRNX
Note that it’s advisable to run the command casout in a separate session, using the Windows start command as shown.