Ü DATFMT (Date Format)
·
If we are
defining some field as a date data format then we can use DATFMT to do the date
formatting.
·
Below is
the list of the date format:
Format name
|
Date-format parameter
|
Date format and separator
|
Example
|
Job default
|
*JOB
|
|
|
Month/day/year
|
*MDY
|
MM/DD/YY
|
01/10/12
|
Day/month/year
|
*DMY
|
DD/MM/YY
|
10/01/12
|
Year/month/day
|
*YMD
|
YY/MM/DD
|
12/01/10
|
International standards
organization
|
*ISO
|
YYYY-MM-DD
|
2012-01-10
|
IBM® USA standard
|
*USA
|
MM/DD/YYYY
|
01/10/2012
|
Example
A R REC0001
A DATE01 L B 5 2DATFMT(*DMY) DATSEP('-')
A DATE02 L B 5 42DATFMT(*JOB) DATSEP(*JOB)