I have been trying to convert a Decimal value in my input file to a hexadecimal value. My I/P data is not of a fixed length and can vary anywhere between 7 to 10 digits.
After Hexadecimal conversion, I am well aware that the max length will 10 characters.
Sample records in My I/P file :
Code: Select all
36812870
411942189
692556828
6969540
696955760
698031146
702103818
My expected results is
Code: Select all
231B846
188DBD2D
//JS030 EXEC PGM=SORT
:
:
SORT FIELDS=COPY
OUTREC FIELDS=(1,10,ZD,TO=BI)
I have been searching the forum and was unable to proceed. Could you please assist?