Guardian Procedure Calls Reference Manual (G06.25+)
Formatter Edit Descriptors
Guardian Procedure Calls Reference Manual—522629-013
F-24
Overflow-Character Modifier (OC)
Overflow-Character Modifier (OC)
The overflow condition occurs if there are more characters to be placed into a field
than there are positions provided by the edit descriptors. In the absence of any
modifier or decoration to the contrary, if an overflow condition occurs in a numeric field,
the field is filled with asterisks (*). This applies to the D, E, F, G, I, and M edit
descriptors. The OC modifier can be used to substitute any other character for the
asterisk as the overflow indicator character.
The OC modifier has the form:
OC
char
char any single character, enclosed in quotation marks or apostrophes.
For example, the modifier [OC ‘!’] causes the output field to be filled with exclamation
marks, instead of asterisks, if an overflow occurs:
The “|” character is used to denote the boundaries of the output field.
Justification Modifiers (LJ, RJ)
The A edit descriptor normally displays the data left justified in its field.
The justification modifiers are:
LJ Left justify (normal)
RJ Right justify (data is displayed right justified)
The RJ and LJ modifiers are used with the A edit descriptor only.
Symbol-Substitution Modifier (SS)
The symbol-substitution modifier permits the user to replace certain standard symbols
used by the formatter with other symbols. It can be used with the M edit descriptor to
free the special characters 9, V, ., and Z for use as text characters in the mask. It can
also be used with the D, E, F, and G edit descriptors to alter the standard characters
they insert in the result field. The symbol substitution modifier has the form:
SS
symprs
symprs one or more pairs of symbols enclosed in quotation marks or
apostrophes. The first symbol in each pair is one of those in the
following table; the second is the symbol that is to replace it
temporarily.
Format Data Value Result
[OC'!']I2 100 |!!|