Previous Topic: DATACTR System Option—Primary Data Center IDNext Topic: DBLDRIV = Verify Same Device on Double Open for a Data Set


DATEFMT System Option—Preferred Date Format

Use the DATEFMT system option to establish your preferred date format pattern.

The value provided by this option can be overridden during execution of certain CA TLMS utilities by including the optional DATEFMT= parameter in the JCL for that utility, and specifying a different date format pattern as the DATEFMT value. If DATEFMT= is not included in the JCL, or is specified as DATEFMT=(DEFAULT), the value contained in member TLMSIPO is used.

This system option has the following format:

DATEFMT='fmt'

Specifies the date format for both input and output. The pattern specified must consist of all of the elements from any one group (1-3) listed next, and may also contain any combination of delimiters. Groups 1, 2 and 3 contain the elements of a complete date. They may be arranged in any order, but each element must be used once and only once.

Range: 10 characters

Delimiters: Slash (/), dash (-), comma (,) or blank. If a blank or comma is used, the parameter value must be enclosed in single quotes or parentheses.

Default: MM/DD/YYYY

Group 1 elements YYYY DDD

Group 2 elements YYYY MM DD

Group 3 elements YYYY MMMDD

YYYY

Year 1960 through 2155

DDD

Day 001 through 366

DD

Day 00 through 32

MM

Month 01 through 12

MMM

Month in character (JAN FEB MAR APR MAY JUN JUL AUG SEP OCT NOV DEC)

Separators

Examples

Results

period(.)

DDMMM.YYYY

01JUN.1995

slash(/)

YYYY/DDD

1995/152

dash(-)

MM-DD-YYYY

06-01-1995

comma(,)

MMMDD,YYYY

JUN01,1995

space( )

DD MM YYYY

01 06 1995

Example: DATEFMT System Option

DATEFMT='MMMDD-YYYY'