Jobs being processed, or waiting to be processed, are kept on a
job queue in priority sequence. You can issue JES2 commands to hold
and release specified jobs or all jobs currently in a system. You
can also keep jobs in specified job queues or all job queues from
being executed until you release them.
The following describes the JES2 commands you can issue to hold
and release local jobs and queues. For information about holding and
releasing jobs at another node, see “Controlling Jobs at Another
Node”.
- Holding and Releasing All Jobs
- Use the $H A command to hold all jobs currently in the member
from which the command is issued. Issuing $H A,memname holds all
jobs in the MAS configuration whose affinities include the specified
member name; $H A,ALL holds all jobs in the MAS configuration
regardless of affinity. Use the $A A command with the same parameters
to release the held jobs.
- Holding and Releasing Specified Jobs
- Use the $H job command to hold a specific job or a range
of jobs. For example, issuing $H J5-8 places batch jobs 5, 6,
7, and 8 in hold status. The current status of the indicated jobs
is displayed in the $HASP890 message.
The $A job command releases
specified jobs in the same manner. The current status of the indicated
jobs is displayed in the $HASP890 message.
Note: The
$A job command may be used to release any held job or range of
jobs, not just those held by the $H job command.
- Holding and Releasing Job Queues
- Use the $T JOBCLASS(x),QHELD=YES command to keep jobs in a specified
job queue from being executed. To allow jobs on that queue to be executed
again, issue $T JOBCLASS(x),QHELD=NO.