SORT – EDIT NUMERIC FIELDS (I,T,S)
- I indicate a leading insignificant digit to be displayed as 1-9, or as blank for a leading 0.
- T indicates a significant digit to be displayed as 0-9.
- S before the digits indicates a leading sign. S after the digits indicates a trailing sign. For M4, the leading sign is to be displayed as + for a positive value or as − for a negative value. For EDIT=(SI,III,III,IIT.TTT),SIGNS=(,−), the leading sign is to be displayed as blank for a positive value or as − for a negative value.
- Any other character (for example, comma, decimal point or hyphen) is just displayed as appropriate.
Suppose your input records are of the format
And your SORT OUTREC statement looks like below which is used to make your PD values meaningful:
The results out of your OUTREC statement are provided below: