Using the Open Query File (OPNQRYF) command for random processing

 

In addition to sequential processing, you can use the OPNQRYF command for random processing (for example, the RPG language operation CHAIN or the COBOL language operation READ). However, if you use the grouping or unique-key function, you cannot process the file randomly.

 

Parent topic:

Using Open Query File (OPNQRYF) command