there are 3 fields and these are delimited by ",".
Just want thse fields one by one on different lines.
e.g
i/p :
Code: Select all
123;ANDB;890
3455;SGDH;7899
o/p should be:
Code: Select all
123
ANDB
890
3455
SGDH
7899
can this be done using SORT?
Code: Select all
123;ANDB;890
3455;SGDH;7899
Code: Select all
123
ANDB
890
3455
SGDH
7899
Code: Select all
//S1 EXEC PGM=ICEMAN
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=... input file (FB)
//SORTOUT DD DSN=... output file (FB)
//SYSIN DD *
OPTION COPY
OUTFIL PARSE=(%01=(ENDBEFR=C';',FIXLEN=20),
%02=(ENDBEFR=C';',FIXLEN=20),
%03=(FIXLEN=20)),
BUILD=(%01,/,%02,/,%03)
/*