With the DF
session parameter, you determine
the length of a date when converted into alphanumeric representation without an
edit mask being specified.
Possible settings | S |
8-byte representation with
2-digit year component and delimiters
(yy-mm-dd ).
With |
|
---|---|---|---|
I |
8-byte representation with
4-digit year component and no delimiters
(yyyymmdd ). See
Note.
|
||
L |
10-byte representation with
4-digit year component and delimiters
(yyyy-mm-dd ). See
Note.
|
||
Default setting | S |
||
Applicable statements | FORMAT |
||
Parameter may be specified at statement level and/or at element level. | |||
Parameter may be specified at element level. | |||
Applicable command | none |
Notes:
DF
parameter is evaluated at
compilation time.
DTFORM
.
MOVE
,
DISPLAY
,
WRITE
or
INPUT
statement) and no
edit mask is specified for the conversion, the default date format as
determined by the profile parameter DTFORM
is used as edit
mask.
INPUT
statement: If no edit mask is specified, the input is validated according to
the date format determined by the DTFORM
parameter.
DF=I
or DF=L
,
you can gradually change your applications to use 4-digit year representations
and at the same time continue to make use of the flexibility provided by the
profile parameter DTFORM
.