Is it possible to include an OMIT condition based on a list held in a datafile. We want to run the same function each run, but the records to omit will vary depending on what the business require.
So am currently running the following two steps
//TOOLIN DD *
COPY FROM(SORTIN1) TO(TEMP1) USING(CTL1)
COPY FROM(SORTIN2) TO(TEMP1) USING(CTL2)
SPLICE FROM(TEMP1) TO(SORTOUT) ON(1,9,CH) WITH(451,10) KEEPNODUPS -
USING(CTL3)
//CTL1CNTL DD *
OUTREC FIELDS=(1,450,451:10X)
//CTL2CNTL DD *
OUTREC FIELDS=(1:2,10,451:100,109)
//CTL3CNTL DD *
OUTFIL FNAMES=SORTOUT,
INCLUDE=(3,7,ZD,GE,POLNOSTART,AND,451,10,CH,EQ,C' '),
OUTREC=(SEQNUM,5,ZD,START=1,INCR=1,C'|',7:1,450,600:X)
and then
//SYSIN DD *
SORT FIELDS=COPY
INCLUDE COND=(1,5,ZD,LE,RECSREQD,AND,390,4,CH,EQ,C'AV01')
OUTREC FIELDS=(1:1,6,C'MM03|45|0|',7,10,61,21,28,33,C' |',
17,11,405,6,C'|',82,37,82,292,C' |',
374,16,C' | | ',600:X)
/*
however I want to omit records where positions 1 to 9 from input of first step or 7 to 15 from output of first step or 17-25 from the output of second step meet criteria in a list held in a mainframe file, is this possible? and if so how?
POLNOSTART and RECSREQD are symbolics.