> With DFSORT/SYNCSORT in mind, possibly a two-step process where the
> first step interrogates an input data stream (no output generated,
> mostly for optimization) to detect a relative-record# where the
> limit-key-value (COND-argument) is then passed to a second step

Scott,

I think you missed the original request.  The Original request is to stop
reading the file once the program finds a key greater than the desired key.
For example if the input has 300 million records and it is sorted , then if
the desired key is found in the first 2 million records, then there is no
need to read the other 298 million records.

Reading the file twice is NOT an optimal solution.

Thanks,
Kolusu

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to