Guardian Procedure Calls Reference Manual (G06.25+)

Formatter Edit Descriptors
Guardian Procedure Calls Reference Manual522629-013
F-18
The L Edit Descriptor
The “|” character is used to denote the boundaries of the output field.
The L Edit Descriptor
The logical edit descriptor is used to display or interpret data in logical form. The L edit
descriptor has the form:
L
w
w an unsigned integer constant that defines the total field width and cannot
exceed 255. The field processed is the
w characters starting at the current
position. After the field is processed, the current position is advanced by
w
characters.
On output, the L edit descriptor causes the associated data element to be evaluated in
a logical context, and a single character is inserted right-justified in the output field. If
the data value is null, the character is blank. If the data value is zero, the character is
F; for all other cases, the character is T. For example:
The “|” character is used to denote the boundaries of the output field.
The input field consists of optional blanks, optionally followed by a decimal point,
followed by an uppercase T for true (logical value -1) or an uppercase F for false
(logical value 0). The T or F can be followed by additional characters in the field. The
logical constants .TRUE. and .FALSE. are acceptable input forms; for example:
The “|” character is used to denote the boundaries of the output field.
Format Data Value Result
L2 -1 | T|
L2 15769 | T|
L2 0 | F|
External Field Format Data Element Value
| T| L7 -1
| F| L7 0
| .TRUE.| L7 -1
|.FALSE.| L7 0
|TUGBOAT| L7 -1
|FARLEY | L7 0