//STEP010 EXEC PGM=SORT
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=abcd.src.111,DISP=SHR
//SORTOUT DD DSN=abcd.Dest.111,
// UNIT=DISK,SPACE=(TRK,(1,2),RLSE),
// DISP=(,CATLG,DELETE)
//SYSIN DD *
SORT FIELDS=COPY
INREC PARSE=(%00=(ENDBEFR=X'6A',FIXLEN=12),
%01=(ENDBEFR=X'6A',FIXLEN=08),
%02=(EXDBEFR=X'6A',FIXLEN=09),
%03=(EXDBEFR=X'6A',FIXLEN=01),
BUILD=(%00,%01,%02,%03)
/*
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=abcd.src.111,DISP=SHR
//SORTOUT DD DSN=abcd.Dest.111,
// UNIT=DISK,SPACE=(TRK,(1,2),RLSE),
// DISP=(,CATLG,DELETE)
//SYSIN DD *
SORT FIELDS=COPY
INREC PARSE=(%00=(ENDBEFR=X'6A',FIXLEN=12),
%01=(ENDBEFR=X'6A',FIXLEN=08),
%02=(EXDBEFR=X'6A',FIXLEN=09),
%03=(EXDBEFR=X'6A',FIXLEN=01),
BUILD=(%00,%01,%02,%03)
/*
999999999¦¦31320000.00¦Y
111111123¦CETESTXY¦1664.00¦Y
111111234¦¦650104000.00¦Y
111111345¦¦0.00¦Y
o/p:
----+----1----+----2----+----3----+----4----+----5--
999999999 31320000.Y
111111123 CETESTXY731664.00Y
111111234 650104000Y
111111345 0.00 Y
Required O/p:
4th Column needs to be converted to 9 char lentgh,
the source value for this column will be 105000.00, 0.00, 75000.00,... i need to convert these values to 9 char field to a file.The values for this column should be parsed from Right to left 9 char, like the one below
----+----1----+----2----+----3----+----4----+----5--
999999999 320000.00Y
111111123 CETESTXY731664.00Y
111111234 104000.00Y
111111345 0.00Y
Can any one help in this issue.