As Date Clause; Default Display Format - Tandem ENFORM 058057 Reference Manual

Data management library
Table of Contents

Advertisement

AS DATE Clause

The AS DATE clause allows you to specify the display format for printing a date. The
syntax of the AS DATE clause is:
date-in-internal-format AS DATE
date-in-internal-format
*
display-format
When you want a date printed, the date must be in internal format. For instructions
on how to convert a date to internal format, refer to the JULIAN-DATE or
TIMESTAMP-DATE clause in this section. The date can be a target-item within a LIST
statement or any element that can be modified by an AS DATE clause within a print
list.

Default Display Format

ENFORM's default date display-format, "M2/D2/Y2", might handle most of the date
formatting required. Change the default format by redefining the @DATE-FORMAT
option variable discussed in this section.
058057 Tandem Computers Incorporated
is the name of a variable or field that contains a date in internal format. The option
variable @DATE can be specified to give the current date in internal format.
specifies the default display format. The default display format specifies the date
in the form month/day/year. It is comparable to the display-format "M2/D2/Y2"
is the format for printing a date. Display-format must be specified within quotation
marks (" "). Display-format can include date keywords, and other characters such
as blanks, commas, hyphens, or slashes. The date keywords are:
specifies a month
M
specifies a day.
D
specifies a year.
Y
abbreviates or completely spells out the month or day. If n is specified with
A
the keyword A, only n letters are displayed.
suppresses leading zeros.
B
abbreviates or completely spells out the number corresponding to the day. If
O
n is specified with the keyword O, only n letters are displayed.
an integer that specifies the number of characters (1-3) or numbers (2-4) to be
n
printed.
*
{
display-format
Clauses
AS DATE Clause
}
5–23

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Enform

Table of Contents