You will still use the OVRDBF but put it in the rpg program
1. Make the f spec USROPN
2. Issue the OVRDBF with member(*all) using QCMDEXC
3. Open the file.
You can also place the EXTMBR keyword on the F-Spec for the file. To open and read all members use EXTMBR(‘*ALL’). Make sure *ALL is all caps and alos between quotesas shown.
You can use a logical file which is based on *ALL members