DATFMT (Date Format) Keyword in Printer Files--Example

Figure 315 shows how to specify the DATFMT keyword.

Figure 315. Specifying the DATFMT Keyword

|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
00010A
00020A          R RECORD
00030A            DATFLD1         L  B  5  2DATFMT(*JUL)
00040A            DATFLD2         L  B  5 22DATFMT(*EUR)
00050A            DATFLD3         L  B  5 42DATFMT(*JOB)
     A

If the date to be displayed is June 21, 1990, the date format defined in the Job Definition Attributes is *MDY and the date separator defined in the Job Definition Attributes is a slash (/), the following values will be displayed when RECORD is written.

DATFLD1     90/172
DATFLD2     21.06.1990
DATFLD3     06/21/90