NetBatch Manual

Commands
NetBatch Manual522460-004
6-181
STOP JOB Command
To stop another user’s job if you have write access to its input file, specify the job’s
full name or number in job-ID.
The STOP JOB command deletes nonrecurring jobs whose state is EXECUTING,
OVER LIMIT, or SUSPENDED and whose attributes do not include HOLDAFTER
ON. (A nonrecurring job does not have the CALENDAR or EVERY attribute.) The
command does not delete executing, over-limit, or suspended jobs whose
attributes include HOLDAFTER ON or jobs whose state is EVENT, READY,
RUNNEXT, RUNNOW, SPECIAL-n, TAPE, or TIME. (For information about
deleting these jobs, see DELETE JOB Command on page 6-84.)
The scheduler reschedules an executing, over-limit, or suspended recurrent job
that you delete with the STOP JOB command. (A recurrent job is a job whose
attributes include CALENDAR or EVERY.) The rescheduled job is eligible to start at
the next time specified by its attributes. To delete the job completely, use the
DELETE JOB command after the STOP JOB command.
You can omit the object keyword JOB from the STOP JOB command only when
JOB is the current assumed object. For more information, see ASSUME JOB
Command on page 6-72.
Examples
This example shows execution of a STOP JOB command and the resulting
scheduler log-file events:
> BATCHCOM $ZBAT; STOP JOB 61
Job TEST Jobnumber 61 stopped
> FUP COPY LOGABN,,SHARE .
.
OPEN U_255,255 P_BATCHCOM \QA.$:0:59:17109804
ABORT JOB TEST by NetBatch J_61 P_DELAY \QA.$Z639:17383725
U_255,255 H_\QA.$ZTN0.#PTY4
DOSTOP \QA.$Z639:17383725 J_61 U_255,255 H_\QA.$ZTN0.#PTY4
STOP CC_6 (ABEND) by \QA.$ZBAT:17381421 U_255,255
EXECUTOR-PROGRAM J_61 \QA.$Z639:17383725
UPDATE EXECUTOR E2 S_ON
FINISH JOB TEST T_0:0:0:9 J_61 P_DELAY
DELETE JOB TEST J_61
CLOSE \QA.$:0:59:17109804 U_255,255
This example shows the effects of various STOP JOB commands executed by
different users:
1} CHANGEUSER 205,70 password
1} STATUS JOB *
JOB JOBNAME USERID LOG STATE CLASSNAME
---- ---------------- ------- ---- ----------- --------------
220 DEVELOPMENT 255,255 1632 4:Start err DVLPMNT
221 EVERYDAY 133,2 18:15:00 STANDARD-CLASS
222 TOTALS 255,205 EVENT STANDARD-CLASS
223 SUBTOTALS 255,255 1:Hold STANDARD-CLASS
224 TEST 205,100 1635 9:STALL STANDARD-CLASS