Thanks, i took your advise and the way the input file was causing me to confuse myself, so i decided to seperate them in two different files.
Im getting an error now
SORT FIELDS=(COPY)
OUTFIL FNAMES=OUTDD1,INCLUDE=((44,2,CH;EQ;C'0-');AND;
(143,4,CH;EQ;C'0420'))
SECTIONS=(43,9
$
ICE005A 0 BLANK NEEDED IN COLUMN 1 OR OPERATION NOT DEFINED CORRECTLY
TRAILER3=(43,9,X,COUNT=(M11,LENGTH=9))
sorry im new to this , and finding it very interesting
i added the trailer3 part and getting the the error before that the seperation ran ok.
//TOOLIN DD *
COPY FROM(INDD1) USING(CTL1)
//CTL1CNTL DD *
SORT FIELDS=(COPY)
OUTFIL FNAMES=OUTDD1,INCLUDE=((44,2,CH;EQ;C'0-');AND;
(143,4,CH;EQ;C'0420'))
SECTIONS=(43,9
TRAILER3=(43,9,X,COUNT=(M11,LENGTH=9))
OUTFIL FNAMES=OUTDD1,INCLUDE=((44,2,CH;EQ;C'0-');AND;
(153,4,CH;EQ;C'0321'))
Sample of input
20-016600 TS2001660001 001 882 016 999999 18.00 0.00 0420
20-018713 TS2001871301 001 364 063 999999 14.00 0.00 0420
20-018713 TS2001871301 001 364 063 999999 29.00 0.00 0420
Position 43 Position 143
Ideal output
Code'd