The following table shows the edit pattern rules. In this table,
ZZZ,ZZZ.99
in the edit pattern as:
Z(3),Z(3).9(2)
|
Category and Meaning |
Data in Source |
Edit Pattern |
Resulting Display |
|
|---|---|---|---|---|
|
Pattern characters for alphanumeric data |
|
|||
|
X |
Alphanumeric character |
STATE |
X(5) |
STATE |
|
|
Any other character represents itself |
AB1234 |
XXX‑XXX |
AB1‑234 |
|
Pattern characters for numeric data |
|
|||
|
L |
Left‑justify before output |
123 |
LZ (3),ZZ9 |
123 |
|
9 |
Unsuppressed numeric digit |
123 |
999 |
123 |
|
Z |
Zero suppression |
v12 |
ZZZ.99 |
.12 |
|
* |
Asterisk replacement |
1v23 |
***9.99 |
***1.23 |
|
, |
Comma |
002234v56 |
ZZZ,ZZZ.99 |
2,234.56 |
|
/ |
Slash |
123083 |
99/99/99 |
12/30/83 |
|
B |
Blank space |
123083 |
99B99B99 |
12 30 83 |
|
0 |
Zero |
123 |
99900 |
12300 |
|
. |
Decimal point |
030v99 |
ZZZ.99 |
30.99 |
|
‑ |
Minus sign, fixed right |
‑23v45 |
9 (2).99‑ |
23.45‑ |
|
‑ |
Minus sign, fixed left |
‑23v45 |
‑9 (2).99 |
‑23.45 |
|
‑ |
Minus sign, floating |
‑v23 |
‑ ‑ .99 |
‑.23 |
|
+ |
Plus sign, fixed right |
67v89 |
9 (2).99+ |
67.89+ |
|
+ |
Plus sign, fixed left |
67v89 |
+9 (2).99 |
+67.89 |
|
+ |
Plus sign, floating |
00v67 |
++.99 |
+.67 |
|
CR |
Credit symbol, right |
‑25v00 |
9 (2).99CR |
25.00CR |
|
DB |
Debit symbol, right |
‑13v00 |
9 (2).99DB |
13.00DB |
|
$ |
Dollar sign, fixed |
004v00 |
$z9.99 |
$ 4.00 |
|
$ |
Dollar sign, floating |
001v23 |
$$$.99 |
$1.23 |
|
<> |
Enclosed negative numbers in parentheses, fixed |
‑23v45 |
<9,999.99> |
(0,023.45) |
|
<> |
Enclosed negative numbers in parentheses, floating |
‑23v45 |
$<<<<.99> |
$ (23.45) |
|
Copyright © 2015 CA Technologies.
All rights reserved.
|
|