rajatbagga,
Not sure whether we can use INREC and BUILD with '/' option.Alissa can throw some light on this.
But here is the other way of doing this.
Just change the card like this,
Code:
OUTFIL FNAMES=CTL3CNTL,
OUTREC=(C' OPTION COPY',80:X,/,
C' INCLUDE COND=(1,1,BI,EQ,X''00'')',80:X,/,
C' OUTFIL FNAMES=OUT,REPEAT=',
+99,SUB,1,2,ZD,EDIT=(TT),80:X)
Output :
Code:
OPTION COPY
INCLUDE COND=(1,1,BI,EQ,X'00')
OUTFIL FNAMES=OUT,REPEAT=some number
OPTION COPY
INCLUDE COND=(1,1,BI,EQ,X'00')
OUTFIL FNAMES=OUT,REPEAT=some number
OPTION COPY
INCLUDE COND=(1,1,BI,EQ,X'00')
OUTFIL FNAMES=OUT,REPEAT=some number
OPTION COPY
INCLUDE COND=(1,1,BI,EQ,X'00')
OUTFIL FNAMES=OUT,REPEAT=some number
Also,I think you need to modify the card to have diffrent file names for the OUT files under OUTFIL FNAMES parm.The current card you used is
poinging to same OUT file.