ENFORM Reference Manual

TIMESTAMP-DATE Clause
Clauses
058057 Tandem Computers Incorporated 5–67
TIMESTAMP-DATE
Clause
The TIMESTAMP-DATE clause extracts the date portion of a timestamp field that has
been created by the GUARDIAN procedure TIMESTAMP. The syntax of the
TIMESTAMP-DATE clause is:
TIMESTAMP-DATE (
field-name
)
field-name
is the name of a field to which the TIMESTAMP-DATE clause returns a date value.
The field must be described in the dictionary.
You must define the field that receives the date value from the TIMESTAMP-DATE
clause in your data dictionary. You must define the field as a six-character
alphanumeric field, such as:
05 TIME-STAMP TYPE CHARACTER 6.
The value returned to this field is a quantity of days in internal format.
Refer to the TIMESTAMP-TIME clause in this section for extracting the time portion of
a timestamp field.