Not sure how a sequential file has a "KEY". It may be a value in fixed columns.
I'm sure it's why we've been sorting files for donkeys years. On Thu, Sep 17, 2020 at 8:53 AM Sri h Kolusu <[email protected]> wrote: > > 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 [email protected] with the message: INFO IBM-MAIN > -- Wayne V. Bickerdike ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
