I have the below input file ,which is VB of length 1132 ...
which i like :
|20120215|20131002||||||N|||201|
when i execute the below code :
//SORTOUT DD DSN=INPUT.FILE1,
// DISP=(NEW,CATLG,DELETE),
// UNIT=(PERMDA,9),
// SPACE=(10,(8000,4000),RLSE),
// DCB=(SYS3.DSCB,
// RECFM=VB,LRECL=1132,BLKSIZE=0)
//SYSIN DD *
OPTION COPY
OUTREC FINDREP=(IN=C'||',OUT=C'|#|')
// DISP=(NEW,CATLG,DELETE),
// UNIT=(PERMDA,9),
// SPACE=(10,(8000,4000),RLSE),
// DCB=(SYS3.DSCB,
// RECFM=VB,LRECL=1132,BLKSIZE=0)
//SYSIN DD *
OPTION COPY
OUTREC FINDREP=(IN=C'||',OUT=C'|#|')
I got the below result
|20120215|20131002|#||#||#|N|#||201|
where all || is not replaced ,,, I need to do until all the || is replaced ...Can you please advice ?