In the preceding steps, you specified a number of variables in the JCL, including, %%ODATE, %%DATE, and %%ODAY. These variables are predefined system date variables, with the following characteristics:
The AutoEdit facility recognizes many system date variables. These are listed and defined in the JCL and AutoEdit facility chapter of the Control-M for z/OS User Guide. However, rather than considering them individually, it is easier to think of system date variables in terms of groupings. Once you have considered the groupings, you can probably anticipate the correct variable name, as illustrated below:
For example, you saw %%DATE resolve to the system date and %%ODATE resolve to the original scheduling date. You also could have specified %%RDATE, which resolves to the current working date.
While there is no special prefix to indicate system dates, original scheduling date variables have a prefix of %%O, and current working date variables have a prefix of %%R.
For example, you saw %%ODAY provide the day unit (1 - 13) of the original scheduling date.
%%JULDAY, %%OJULDAY, and %%RJULDAY are examples of valid Julian date variables.
For example, %%$DATE, %%$ODATE, and %%$RDATE each return the appropriated date in yyyymmdd format, or a different 4-character year format, depending upon the standards in place at your site.
Parent Topic |