Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

Particularities when monitoring and controlling jobs

&pagelevel(4)&pagelevel

Job monitoring

Job variables which monitor a job are protected against deletion and modification of protection attributes. This protection exists from the time of declaration as a monitoring job variable until termination of the monitoring function.
The monitoring function ends for an individual job when the job is terminated. For the followup job of a repeat job the monitoring function begins again with the LOGON of the followup job and ends when the job is terminated.
In the case of a calendar job, the monitoring function ends only when the entire calendar job has been terminated.
A privileged user (TSOS privilege) can also terminate monitoring of a job prematurely with the MODIFY-JOB-OPTIONS command or transfer it to another job variable. In this case protection ends with the loss of the monitoring function.

The protection is indicated in a special output line by means of the SHOW-JV-ATTRIBUTES command. If you enter SELECT=*BY-ATTRIBUTES(MONJV=*YES) the job variables which are protected in this way are displayed. The protection can be explicitly canceled via MONJV-PROTECTION in the MODIFY-JV-ATTRIBUTES command. if protection is removed, then the job variable monitoring the job cannot be supplied with current values. Some components (e.g. JMS) therefore set the protection at each access.

Conditional job control

Job variables which are used in conditional commands or macros during conditional job control are protected against deletion and against modification of the protection attributes.

The protection is not displayed separately in the output of the SHOW-JV-ATTRIBUTES command. However, when SELECT=*BY-ATTRIBUTES(CJC-PROTECTION=*YES) is specified, the output can be reduced so that only those job variables are displayed for which this protection exists.

The protection lasts for as long as a job variable is used in a condition (e.g. from the activation of the CJC command sequence until its termination, or until the sequence is deleted, or until the wait time of a WAIT command has expired).