JESDOWN sample EXEC


The JESDOWN EXEC is located in BBPROC.

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:

  1. A $PI command is issued to drain all of the initiators.
  2. A $P command is issued to stop all new JES requests and reset current activities.
  3. Commands are issued to display and then to stop all remotes.
  4. Commands are issued to display and then to stop all lines.
  5. Commands are issued to display and then to stop all active batch jobs.
  6. Commands are issued to display and then to stop all active printers.
  7. A IMFEXEC WAIT command is issued.
  8. A WRITELOG command is issued.
  9. A $PJES2 command is issued next.
  10. 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.
  11. If the operator replies with a Y to force the shutdown, a $PJES2, ABEND command is issued.
  12. 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*