The <a href="http://www.powercl.com/">PowerCL: CL for Files (CLF)</a> product provides a CL <a href="http://www.powercl.com/clf/clfcommands/chain">CHAIN</a> command to search and find a record by key or relative record number. The product also has a <a href="http://www.powercl.com/clf/clfcommands/readrcdclf">ReadRcdCLF</a> command which provides quite a bit more function than the RPG CHAIN operation code.
(one of the authors of CLF)
There's not really any command in CL to do this, however you may be able to use OPNQRYF to get a similar result.
Last Wiki Answer Submitted: December 29, 2009 2:57 pm by Gilly40023,625 pts.