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.
casstart -rJCLDEMO start casout -bABC -rJCLDEMO
This starts a batch initiator SEP for the classes A, B and C on the enterprise server JCLDEMO.
casstart -rJCLDEMO start casout -bA -n"HP LaserJet 4L" -rJCLDEMO
This starts 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 -xSAMPPRNX
This is as above, with the differences that the printer exit SAMPPRNX is installed.
Note that it’s advisable to run the command casout in a separate session, using the Windows start command as shown.