>>> Note that I changed your EQ to GE. So it would stop after reading no > more than 1001 irrelevant records, much improving the performance > for the OP's "very large" SORTIN. Note also that the OP said SORTIN > had previously been sorted, so no records having key LT,'ABC' would > precede the desired.
Gil, My apologies. I did not notice the GE. > Needed because I change 'EQ' to 'GE. No. You still don't need second pass as you can still filter on OUTFIL. something like this (note that I used EQ on the OUTFIL INCLUDE) //SYSIN DD * OPTION COPY,STOPAFT=1001 INCLUDE COND=(1,3,CH,GE,C'ABC') OUTFIL INCLUDE=(1,3,CH,EQ,C'ABC') /* Thanks, Kolusu ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
