Joerg.Findeisen
Senior Member
Joined: 15 Aug 2015 Posts: 1335 Location: Bamberg, Germany
|
|
|
|
You can try something like this:
Code: |
OPTION COPY
INREC IFTHEN=(WHEN=INIT,OVERLAY=(1001:12Z)),
IFTHEN=(WHEN=(6,3,CH,EQ,C'1a0'),
OVERLAY=(1001:+1,BI,LENGTH=4),HIT=NEXT),
IFTHEN=(WHEN=(640,1,CH,EQ,C'Y'),
OVERLAY=(1005:+1,BI,LENGTH=4),HIT=NEXT),
IFTHEN=(WHEN=(640,1,CH,EQ,C'N'),
OVERLAY=(1009:+1,BI,LENGTH=4))
OUTFIL FNAMES=(SORTOUT),
REMOVECC,
TRAILER1=(C'TRAILER:',COUNT,X,
C'DOCMENT :',TOT=(1001,4,BI,M10,LENGTH=5),X,
C'PRINT : ',TOT=(1005,4,BI,M10,LENGTH=5),X,
C'NOPRINT : ',TOT=(1009,4,BI,M10,LENGTH=5))
END |
Change field offsets and lengths to your needs. |
|