In addition to specifying a value for a user-defined AutoEdit variable in a SET VAR statement in the job scheduling definition, a value can also be provided in a DO SET statement. However, because a DO SET statement, like any DO statement, is a conditional Post-processing parameter, it is only activated on a subsequent run of the job, such as a rerun or restart, and then, only provided that the particular ON criteria are satisfied.
AutoEdit terms can also be specified in the following statements in the job scheduling definition:
File names for SYSOUT and DO SYSOUT handling can be specified using AutoEdit variables whenever SYSOUT Option F, the copy to file or sysout archiving option, is specified, as shown in this example
SYSOUT OP F PRM GPL.%%JOBNAME.D%%ODATE.%%JOBID.T%%TIME
System AutoEdit variables can be used in shouted messages, such as
MSG JCL ERROR IN JOB %%JOBID %%STEP
AutoEdit variables can be used in the MEMLIB and OVERLIB fields to specify the appropriate library, as shown in this example
OVERLIB CTM.LIB.JCL.OVER%%ODATE
Parent Topic |