Many System variables specify dates, or parts of dates, in various formats. Therefore, it is useful to understand the categories of dates with which Control-M is concerned.
Dates are divided into the categories listed below. For a description of these categories, see Date Definition Concepts.
System variables that specify working dates begin %%R (%%RDATE, %%RDAY, and so on).
System variables that specify original scheduling dates begin %%O (%%ODATE, %%ODAY, and so on).
System variables that specify system dates have no special prefix other than %% (%%DATE, %%DAY, and so on).
Although these types of dates are resolved in Gregorian format, Julian formats can also be requested (%%JULDAY, %%OJULDAY and %%RJULDAY).
The following date AutoEdit System variables are supported by Control-M in JCL and in certain job scheduling definition parameters (for more information, see AutoEdit Usage in the Job Scheduling Definition):
Table 249 Date AutoEdit System Variables
Variable |
Description |
---|---|
%%$CENT |
First two digits in the current year (for example, 20 in the year 2000). |
%%DATE |
Current system date (format yymmdd). |
%%DAY |
Current system day (format dd). |
%%MONTH |
Current system month (format mm). |
%%YEAR |
Current system year (format yy). |
%%WEEK |
Current week in the year (that is, 01 through 53). |
%%WDAY |
Current system day of the week (Example: 1=Sunday, 2=Monday and 0=Saturday). |
%%$OCENT |
First two digits of the year in which the job was originally scheduled. |
%%ODATE |
Original scheduling date of the job (format yymmdd). |
%%ODAY |
Original scheduling day of the job (format dd). |
%%OMONTH |
Original scheduling month of the job (format mm). |
%%OYEAR |
Original scheduling year of the job (format yy). |
%%OWEEK |
Original scheduling week of the job (that is, 01 through 53). |
%%OWDAY |
Original scheduling day of the week of the job (format d; Example: 1=Sunday, 2=Monday and 0=Saturday). |
%%$RCENT |
First two digits of the current working year. |
%%RDATE |
Current working date (format yymmdd). |
%%RDAY |
Current working day (format dd). |
%%RMONTH |
Current working month (format mm). |
%%RYEAR |
Current working year (format yy). |
%%RWEEK |
Current working week (that is, 01 through 53). |
%%RWDAY |
Current working day of the week (format d; Example: 1=Sunday, 2=Monday and 0=Saturday). |
%%JULDAY |
Current system day (Julian format jjj). |
%%OJULDAY |
Original scheduling day of the job in the year (Julian format jjj). |
%%RJULDAY |
Current working day of the year (Julian format jjj). |
The following AutoEdit System variables, prefixed %%$, resolve to dates having 4-character years:
Table 250 4 Character Year Date AutoEdit System Variables
Variable |
Description |
---|---|
%%$DATE |
Current system date (format yyyymmdd). |
%%$YEAR |
Current system year (format yyyy). |
%%$ODATE |
Original scheduling date of the job (format yyyymmdd). |
%%$OYEAR |
Original scheduling year of the job (format yyyy). |
%%$RDATE |
Current working date (format yyyymmdd). |
%%$RYEAR |
Current working year (format yyyy). |
%%$JULDAY |
Current system day (Julian format yyyyjjj). |
%%$OJULDAY |
Original scheduling day of the job in the year (Julian format yyyyjjj). |
%%$RJULDAY |
Current working day of the year (Julian format yyyyjjj). |
Parent Topic |