DRAINJES
Purpose
DRAINJES drains (that is, halts) JES2 resources prior to JES2 shutdown. Specifically, DRAINJES issues commands to drain the initiators, syslog, offloader tasks, lines, printers, punches, and readers (depending on which resources are listed in the automation control file).
Syntax
Parameters
- subsystem
- Specifies the name of the JES2 subsystem whose resources you want to drain. If you are in fullscreen mode and you do not specify a subsystem, a panel is displayed where you can specify the subsystem. If you are in line mode an error message is displayed.
- TARGET
- For information on the TARGET parameter, see TARGET Parameter.
- OUTMODE
- For information on the OUTMODE parameter, see OUTMODE Parameter.
Restrictions and Limitations
The DRAINJES command can only be used when SA z/OS® is initialized.
Usage
Normally, you do not need to issue this command because it is performed automatically as part of the SHUTDOWN processing. However, if SA z/OS is unable to shut down a particular JES2 subsystem, you can use DRAINJES.
Examples
Assuming the JES2 subsystem name is JES2, type drainjes jes2 to
drain the JES2 resources.
