Edit codes

Edit codes determine the formatting of character, graphic, numeric, and time data for each column. You can use the edit codes listed below in the Tivoli Decision Support for z/OS built-in report generator. n defines the number of decimal places after the decimal separator, if applicable. n can be 0. If n is omitted, it is assumed to be 0.

E
Displays the numbers in exponential (scientific) notation.
In
Displays the numbers with any decimal places, negative sign, and leading zeros, but no thousands separators.
Jn
Displays the numbers with any decimal places and leading zeros, but no negative sign or thousands separators.
Kn
Displays the numbers with any decimal places, negative sign, and thousands separators, but no leading zeros.
Ln
Displays the numbers with any decimal places and negative sign, but no leading zeros or thousands separators.
Pn
Displays the numbers with a percent sign, any decimal places, negative sign, thousands separators, but no leading zeros.
C
Displays the numbers as character data, without thousands separators or decimal places.

Other QMF edit codes used in the predefined reports, such as edit codes for DATE, or TIME, are interpreted as edit code C, character data. If you are basing a new report on a predefined report, you must replace such edit codes with edit code C.

The table below shows examples of how edit codes affect the formatting of values. For example, it shows the effect of the edit code if the number -1234567.885 is written to a column with the width 15.

Table 1. Examples of how edit codes affect the formatting of values
Edit code Result Leading
zeros
Negative
sign
Thousands
separator
Percent
sign
E
-1.23456789E+06
No Yes No No
I2
-00001234567.89
Yes Yes No No
J2
000001234567.89
Yes No No No
K2
  -1,234,567.89
No Yes Yes No
L2
    -1234567.89
No Yes No No
P2
   -1234567.89%
No Yes No Yes