Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
Converting numeric fields to different formats z/OS DFSORT: Getting Started SC23-6880-00 |
|||||||||||||||||||
Suppose you want the summed binary values in Table 2 be readable so you can print
or display them. You can use the following statements to convert
the BI values to readable ZD values:
p,m,BI,TO=ZD converts the BI values to ZD values. By default, a 4-byte BI value produces a 10-byte ZD value, but LENGTH=6 overrides the default length to produce a 6-byte ZD value. Table 1 shows the output, which is readable:
Alternatively, you can use the following OUTREC statement to convert
the BI values to readable FS values:
p,m,BI,TO=FS converts the BI values to FS values. By default, a 4-byte BI value produces an 11-byte FS value, but LENGTH=6 overrides the default length to produce a 6-byte FS value. Table 2 shows the output, which is readable:
You can use p,m,f,TO=f or p,m,f,f to convert from various numeric formats to various other numeric formats. You can use LENGTH=n to override the default output length. For detailed information on DFSORT's numeric conversion parameters, see z/OS DFSORT Application Programming Guide. |
Copyright IBM Corporation 1990, 2014
|