SQL/MP Reference Manual

HP NonStop SQL/MP Reference Manual523352-013
A-66
Examples—AS
Zero value:
Overflow value:
These 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).
MPF specifies that if the value is negative or positive (MP), the print location is set
immediately to the left of the value (F).
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|