A system variable that returns the job name.
The variable allows an NCL procedure to determine the job name under which it is executing. In a VM/GCS system this is the GCS USERID, in other systems the job or started task name.
Example: &ZJOBNAME
&IF &ZGOPS = MVS &THEN + &WRITE DATA=Started task name is &ZJOBNAME
Use of this variable is especially useful on an ABENDCMD command specified during initialization. The following command:
ABENDCMD S &ZJOBNAME
would restart the system automatically in the event of an abend in a z/OS or MSP system, assuming the system was run as a started task.
| Copyright © 2009 CA. All rights reserved. |
|