ENFORM Reference Manual
AS Clause
Clauses
058057 Tandem Computers Incorporated 5–9
"["
modifiers
"]"
alter the effect of the edit descriptors as follows:
BN,BZ prints blanks for null or zero values respectively.
FL
char
specifies a substitute fill character.
OC
char
respecifies the overflow character.
LJ, RJ specifies right or left justification.
SS
pr-of-symbols
allows substitution of symbols.
where
char
is an ASCII character enclosed in apostrophes.
pr-of-symbols
is a special mask symbol (see repeatable-edit-descriptors) and a
substitution character.
The AS clause identifies how an target-item or by-item is printed in the current report.
Default Display Format. When no AS clause is specified, ENFORM looks for either a DDL
display format (for fields) or a DECLARE statement (for variables). If neither of these
is present, it uses the data type of the field. (The data type is derived from the DDL
PIC clause or DECLARE INTERNAL clause, if present. For example, PIC 999999V99 is
converted to F9.2—fixed, nine characters long with two decimal places). If there is no
PIC or INTERNAL clause, a 64-bit signed integer (or 20-character display format) is
used.
The AS clause allows you to use some of the capabilities of the GUARDIAN operating
system formatter. When you specify a display format, ENFORM passes your format
specifications to the Formatter. Refer to the GUARDIAN Operating System
Programmer’s Guide for more information about the formatter.
Repeatable Edit
Descriptors
Repeatable edit descriptors specify the conversion of data values by the Formatter for
the target-item or by-item being printed. The word repeatable has no real meaning in
the context of ENFORM; the word is used to simplify cross references to the
FORMATTER terminology. Currently, ENFORM makes only single target-items or
by-items available for modification by edit descriptors.