JESDOWN sample EXEC
It is invoked by the operator to shutdown JES2. When invoked, a WTOR message is displayed. The operator must respond with Y to continue with the shutdown or N to cancel processing. If Y is entered, the following steps are taken:
- A $PI command is issued to drain all of the initiators.
- A $P command is issued to stop all new JES requests and reset current activities.
- Commands are issued to display and then to stop all remotes.
- Commands are issued to display and then to stop all lines.
- Commands are issued to display and then to stop all active batch jobs.
- Commands are issued to display and then to stop all active printers.
- A IMFEXEC WAIT command is issued.
- A WRITELOG command is issued.
- A $PJES2 command is issued next.
- If the operator gets a response that the system is not dormant, a WTOR message is displayed giving the operator the option to force a shutdown.
- If the operator replies with a Y to force the shutdown, a $PJES2, ABEND command is issued.
- If JES2 ends successfully, a WTO message 'JES2 shutdown completed successfully' is displayed. If JES2 does not end, a WTO message 'JES2 is still draining, please initiate section procedures' is displayed.
The JESWAIT PROFILE variable can be customized. It is located in the MSU002C EXEC.
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*