Shown in the following table is a list of some of the other AutoEdit functions available, besides %%$CALCDTE and %%$JULIAN. They are described in detail in the Control-M for z/OS User Guide.
Note: All date-related functions with a $ symbol, that is, those beginning %%$, require and return 4-character years, in format yyyy.
Table 12 Other AutoEdit Functions
Function |
Description |
---|---|
%%$GREG |
Converts a Julian date to a Gregorian date. |
%%$LEAP |
Determines whether a specified Gregorian date falls in a leap year. |
%%$WCALC |
Performs a shift from the specified date to a working date in the specified calendar, according to indicated instructions. |
%%$WEEK# |
Calculates in which of weeks 1 through 53 a specified date falls. The function uses the site-defined start of the week—Sunday or Monday— as the first day of each week, and assumes that January 1st falls in the first week. |
%%$WEEKDAY |
Calculates on which day of the week a specified date falls. The resolved value is an integer from 1 through 6, or 0, where 1 corresponds to the first day of the week—Sunday or Monday, depending on the site-standard—and 0 corresponds to the last day of the week, either Saturday or Sunday. |
%%$YEARWK# |
Calculates in which of weeks 1 through 53 a specified date falls, and returns the year and the week number according to ISO8601 standards. The function uses the site-defined start of the week—Sunday or Monday— as the first day of each week, and assumes that the first week is the week that includes January 4th. |
%%SUBSTR |
Extracts a substring from a string. |
Parent Topic |