Communicator 3000 MPE/iX Release 6.0 (Platform Software Release C.60.00) (30216-90269)
Chapter 10 207
Technical Articles
CI Enhancements
When more than one job or session matches jobid,
PAUSE sleeps while all matching jobs are in their
"while_state." If the job executing PAUSE matches jobid
it will not be selected.
interval_ secs if specified, PAUSE sleeps for this many seconds
between attempts to see if jobid is still in its
"while_state." Otherwise, PAUSE sleeps a variable
amount of seconds depending on the job state and the
number of previous times a particular job has been
polled. This computed method favors executing jobs
that terminate quickly.
Examples
The following pauses while job #J20 is in any of the JOB states such as
INTRO, SCHED, and EXEC until the job terminates:
:PAUSE JOB=#J20;EXIST
The following pauses while job #J24 is in INTRO, WAIT, or SCHED state.
PAUSE ends when #J24 is no longer in any of these states.
:PAUSE JOB=#J24;WAIT
The following example pauses while job #J24 exists in the system job
table, (JMAT). That is, it is visible in SHOWJOB output.
:PAUSE job=#j24
The next example sleeps as long as MANAGER.SYS has any jobs or
sessions running or waiting.
:PAUSE job=manager.sys exists
The next example pauses until the job streamed starts executing
:STREAM myjob
:PAUSE job=!hplastjob; wait
Or sleeps until the job you just streamed completes.
:PAUSE , !HPLASTJOB
The following example sleeps until all jobs have logged off or 5 minutes,
whichever occurs first.
:PAUSE 300, @J
:IF hpcierr = -9032 then
# pause terminiated but one or more jobs are still running
The next example pauses while all jobs (by naming convention only) in
the PROD account are running.
:PAUSE job=”J@,@.PROD” #note the quotes are required
The next example sleeps while the backup JOB (“JBACKUP,OP.SYS”)
has not been streamed. PAUSE reports CIWARN 9032 if the job is not
streamed within 30 minutes.
:PAUSE 1800, job=”jbackup,op.sys”; notexist