NonStop SQL/MP Reference Manual

Table Of Contents
NonStop SQL/MP Reference Manual142115
A-61
Examples—AS
Sample negative display: | <240.00>|
The following are examples of decorations for positive, negative, zero, or overflow
values:
Negative value:
Positive value:
Zero value:
Overflow value:
The following are examples of edit descriptors with decorations:
ZPP specifies that if the value is zero or positive (ZP), the print location is set
immediately to the right of the value (P).
MAn char-string Prints at position n
MF char-string Prints immediately left of a right-justified value or immediately
right of a left-justified value
MP char-string Prints immediately right of a value
PAn char-string Prints at position n
PF char-string Prints immediately left of a value
PP char-string Prints immediately right of a value
ZAn char-string Prints at position n
ZF char-string Prints immediately left of a right-justified value or immediately
right of a left-justified value
ZP char-string Prints immediately right of a value
OAn char-string Prints at position n.
Format Item Value Printed Item
“[MF'<',MP'>',ZPP' '] F12.2” 1000.00 | 1,000.00 |
“[MF'<',MP'>',ZPP' '] F12.2” -1000.00 | <1,000.00>|
“[MA1'CR',MPF'$'] F12.2” 1000.00 | $1,000.00|
“[MA1'CR',MPF'$'] F12.2” -100.00 |CR $100.00|
“[MA1'CR',MPF'$'] F12.2” 0.00 | 0.00|
“[OA1'**overflow**']
F12.2”
1000000.00 |1000000.00|
“[OA1'**overflow**']
F12.2”
1000000000.00 |**overflow**
|
“[ZPA2'+'] I8” -10 | 10|
“[ZPA2'+'] I8” 100 | + 100|
“[ZPA2'+'] I8” 0 | +0|