JES2 allows you to issue commands to control job execution in the
- Route specified jobs for execution
- Issue the $R XEQ,D= command to route specified jobs to another
node (D=) for execution. You can use the J= parameter to specify
a particular batch job to be routed
or use the R= parameter to specify that all jobs in the system are
to be routed to the node named on the D= parameter.
You can still
control the execution of jobs you've routed to another node. For
a description of the commands you can use, see “Controlling Jobs
at Another Node” .
- Stop a job
- Use the $C job command to cancel a job or time sharing user
(TSU) immediately, regardless of the member
of the MAS on which the job is executing. To stop a job after it has completed its current activity and
remove all traces of it from the system, issue the $P job command.
STCs, however, can only be cancelled using these commands after they
have executed. (Use the MVS™ CANCEL command if you wish to cancel
these types of jobs during execution.)
The $C job command terminates
the scheduling of a job or range of jobs. If the job is in execution,
you can also request a storage dump to diagnose a problem by specifying
$C job,D. Issue the $C job,P command to purge the job output.
$P job command cancels job output and purges all information about
the job from the system. The $P job,Q=
command allows you to specify up to 36 classes of output to be cancelled
for the job. However, if data for the job remains queued in an output
class you did not specify, JES2 does not cancel the job from the system.
CANCEL parameter on the $P SPOOL,V=volser,CANCEL command cancels
all jobs on the volume that can be cancelled. If any job being
cancelled has data sets residing on another volume, those data sets
are also cancelled. JES2 issues the $HASP890 message to display the
status of cancelled jobs.
- Restart a currently executing job
- Issue the $E Jn[-n] command to queue one or more batch jobs
for re-execution, regardless of which member of the MAS the job is
on. If you wish to restart a job, butdo
not want it to execute at this time, first hold the job using the
$H command, then issue the $E command.
- Change the execution class, scheduling priority, or affinity
- Use the $T job command to change these characteristics for
a single job or a specified range of jobs.
The $T JOBCLASS(n),XBM=xxxxxxxx command allows
you to specify that all jobs in the specified class (n) be processed
by the named execution batch monitor procedure.