DSM Template Services Manual

Template Language
DSM Template Services Manual427187-004
3-26
DATE Edit Code
Example
Because BOOL has no field-width option, the only possible example is:
BOOL
DATE Edit Code
The DATE edit code accepts an internal date in (ZSPI-TDT-) TIMESTAMP format (in
GMT: Greenwich Mean Time) and represents it as display text in Local Civil Time
(LCT). If the timestamp is not in GMT, the display-text representation will be wrong.
The syntax of the DATE edit code is:
( enform-date-format-code )
if present, is one of the Enform date formats surrounded by parentheses. For a
description of date formats, see the
Enform Reference Manual
. Otherwise, the
date is in the ddMMMyy format, as in 26APR98. 01Jan01 is inserted if the
timestamp value in the token cannot be converted.
Example
This example of a DATE edit code includes ENFORM-date-format-code:
DATE ("M2 D2 Y2")
The DATE edit code just shown produces display text such as:
04 30 99
For more information on such codes, see the
Enform Reference Manual
and TIME Edit
Code on page 3-35.
ENUM Edit Code
The ENUM edit code inserts, in the display text, a character string that represents the
value of an enumerated type. The character string is the AS string from the appropriate
level-89 item.
Use an ENUM edit code to format:
A token value (rather than a field) if the token type is defined by a DEF of type
ENUM and the token data type is (ZSPI-TDT-) ENUM, INT, or UINT.
A token that is named in a DEF_ENUM statement. For data types permitted in this
case, see the DEF_ENUM Statement on page 3-11.
A structure field of type ENUM or a structure field mentioned in a DEF_ENUM
statement.
DATE [ ( enform-date-format-code ) ]