Previous Topic: Override the Preferred Date PatternNext Topic: Separators


Date Format Pattern

The pattern indicated for (fmt) is limited to 10-bytes and must be enclosed in parentheses when entered on an EXEC statement of a CA 1 program. It must consist of all of the elements from any one group (1-3) listed below, and can contain any combination of elements from the separator character group. Groups 1, 2 and 3 contain the elements of a complete date. They can be arranged in any order, but each element must be used only once.

The following date format groups can be used:

DDD

Specifies a Julian day.

Range: 000 to 366

DD

Specifies a day of the month. The range of days in January is 00-31. The range of days in February is 01-28, except during leap year when the range is 01-29. The range of days in December is 01-32, except during leap year when the range is 01-31. January 0 and December 32 are acceptable dates since the JCL allows values such as EXPDT=98000 and EXPDT=97366.

Range: 0 to 32

MM

Specifies a number for the month.

Range: 01 to 12

YYYY

Specifies a valid year. Dates can be specified in the range January 0, 1960 (1960/000), through the 21st Century date, December 32, 2155 (2155/366).

Range: 1960 to 2155

MMM

Specifies the month.

Valid values: JAN, FEB, MAR, APR, MA,Y JUN, JUL, AUG, SEP, OCT, NOV, and DEC.