I am trying to add leading zero to a alphanumeric value o/p.
not working as expected
//SYSIN DD *
SORT FIELDS=COPY
INREC PARSE=(%00=(ENDBEFR=X'6A',FIXLEN=04),
%01=(ENDBEFR=X'6A',FIXLEN=05)),
BUILD=(%00,%01,UFF,M11,)
/*
i/p:
----+----
1212¦1000
1213¦R001
1214¦XXXX
o/p should be :
----+----
121201000
12130R001
12140XXXX
I need the 2nd columns should be having leading zero (5 char length ) in the answerset
when i Use the below code i get the correct answer for numeric data alone,
But doesnt work for alphanuberic values.
is there any solution for this ?
Thanks,
JRS