NetBatch Manual
Commands
NetBatch Manual—522460-004
6-65
ALTER JOB Command
°
If the job’s state is EXECUTING, OVER LIMIT, or SUSPENDED, the only
attributes that can apply are DESCRIPTION, HOLDAFTER, IFFAILS, LIMIT,
PURGE-IN-FILE, RESTART, SAVEABEND, STALL, and STOP-ON-ABEND. If
the job is also recurrent, the updated description applies in full the next time
the job runs. (A recurrent job has the CALENDAR or EVERY attribute.)
When you alter an executing, over-limit, or suspended job, BATCHOM displays
a warning message similar to:
0517-W Job job-name is currently executing or
suspended; altered attribute(s) might not affect
current execution
•
You can omit the object keyword JOB from the ALTER 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 the ALTER JOB command altering the EXECUTOR-
PROGRAM and EVERY attributes of a job:
2} INFO JOB BACKUPS, EXECUTOR-PROGRAM, EVERY
JOB ATTRIBUTES for BACKUPS
jobnumber: 94
executor-program: \DEV.$SYSTEM.SYSTEM.BACKUP
every: 1 DAYS
next-runtime: 11OCT94 15:07:32
3} ALTER JOB BACKUPS, EXECUTOR-PROGRAM TACL, EVERY 7 DAYS
Job BACKUPS Jobnumber 94 altered
4} INFO JOB BACKUPS, EXECUTOR-PROGRAM, EVERY
JOB ATTRIBUTES for BACKUPS
jobnumber: 94
executor-program: \DEV.$SYSTEM.SYSTEM.TACL
every: 7 DAYS
•
This example shows the effects of various ALTER JOB commands executed by
different users:
34} STATUS JOB *
JOB JOBNAME USERID LOG STATE CLASSNAME
---- ---------------- ------- ---- ----------- --------------
347 T 205,70 21:30:00 STANDARD-CLASS
348 U 205,70 2154 SUSPENDED STANDARD-CLASS
349 V 205,70 1:Hold STANDARD-CLASS
350 W 255,205 2156 EXECUTING STANDARD-CLASS
351 X 255,205 2158 READY STANDARD-CLASS
352 Y 205,100 EVENT STANDARD-CLASS
353 Z 133,2 EVENT STANDARD-CLASS
35} CHANGEUSER 205,70 password
35} ALTER JOB *, SELPRI 7, PRI 190
Job T job number 347 altered
Job U job number 348 altered
0517-W Job U is currently executing or suspended; altered