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
Year 1960 through 2155
Day 001 through 366
Day 00 through 32
Month 01 through 12
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'
|
Copyright © 2014 CA.
All rights reserved.
|
|