Guardian Procedure Calls Reference Manual

| <1000.00>|-1000.00[MF'<',MP'>',ZPP' ']F12.2
| $1000.00 |1000.00 MA1'CR',MPF'$']F12.2
|CR $100.00|-100.00 MA1'CR',MPF'$']F12.2
| 1000000.00|1000000.00 OA1'**OVERFLOW**']F12.2
|**OVERFLOW**|10000000.00 OA1'**OVERFLOW**']F12.2
The "|" character is used to denote the boundaries of the output field.
NOTE: These decorations are automatically applied to any numeric edit descriptor (D, E, F, G,
I, or M) for which no decoration has been specified:
MF'-'
OA1'*** ... *' (where the number of asterisks is equal to the number of characteristics in the field
width.)
However, if any decoration with a condition code relating to the sign of the data is specified, the
automatic MF'-' decoration no longer applies; if negative-value indication is desired, you must
supply the appropriate decoration. If any decoration with a condition code relating to overflow is
specified, the automatic OA1'***...*' decoration no longer applies. If MF'' is specified (that is,
with no text string), then the default MF'-' is applied.
As an example of how decorations apply to a group of edit descriptors, these formats give the
same results:
Format
[MF'-'](F10.2,[MZF'**']F10.2)
MF'-']F10.2,[MZF'**',MF'-']F10.2
Using the format above:
ResultsData Values
0.00 **0.00
/\ /\ /\
0,0
1.00 1.00
/\ /\ /\
1,1
-1.00 **-1.00
/\ /\ /\
-1,-1
The "/\" marker is used to denote the boundaries of the output field.
List-Directed Formatting
List-directed formatting provides the data conversion capabilities of the formatter without requiring
the specification of a format. The FORMATDATA procedure determines the details of the data
conversion, based on the types of the data elements. This is particularly convenient for input because
the list-directed formatting rules provide for free-format input of data values rather than requiring
data to be supplied in fixed fields. There are fewer advantages to using list-directed formatting for
output because the output data is not necessarily arranged in a convenient readable form.
The characters in one or more list-directed buffers constitute a sequence of data-list items and value
separators. Each value is either a constant, a null value, or one of these forms:
r*c OR r*
r is an unsigned, nonzero, integer constant.
r*c form is equivalent to r successive appearances of the constant c.
r* form is equivalent to r successive null values.
Neither of these forms can contain embedded blanks, except where permitted with the constant
c.
List-Directed Formatting 1569