Joined: 14 Jan 2008 Posts: 2504 Location: Atlanta, Georgia, USA
Move LOW-VALUES to the WS KEY and use this WS KEY as the RIDFLD in the STARTBR command to begin your browse.
FWIW, you cannot Browse a KSDS file without the RIDFLD as you'll get a translator error.
If for some strange reason a NOTFND condition is raised on the STARTBR, then the file is EMPTY.
Otherwise, issue subsequent READNEXT commands until you've reached EOF (EIBRESP=20) or the record that you've just read contains the information that you need. If this is the case, then it would be wise to issue an ENDBR command rather than wait until task termination.