Here is an option based on the assumption that you want to access several different members within the same physical file at the same time (such as comparing two members):
<ol><li>Create two (or more) logical files. (The LF’s DDS only needs the PFILE keyword- no fields, no keys) One references the first member (see Designate Members for LFs below). The second LF references the second member. (The third …)</li><li>In your RPG, add the LFs to your F Spec.</li><li>You may need to use the RENAME keyword on the F Spec to change the format name to something unique within your program</li>
</ol>Optionally: Instead of creating the LF’s for only one particular member, create a CLP that first uses OVRDBF to pick which members each LF should use, and then calls your RPG.