Selecting and omitting logical file records using the Open Query File (OPNQRYF) command
As an alternative to using DDS, you can select and omit records for a logical file by specifying the QRYSLT parameter on the Open Query File (OPNQRYF) command.
The open data path created by the OPNQRYF command is like a temporary logical file; that is, it is automatically deleted when it is closed. A logical file, however, remains in existence until you specifically delete it.
Parent topic:
Selecting and omitting records for logical files
Related concepts
Using Open Query File (OPNQRYF) command