Problem solve Get help with specific problems with your technologies, process and projects.

Use OPNQRYF against a multi-format logical file

Is it possible to use OPNQRYF against a multi-format logical file so that I get records from each of the formats? Our order header records are stored in two files -- current and history. Currently, we execute the OPNQRYF command twice, once for each of the formats in this logical file.

If the files contain different record formats, you would need both OPNQRYF commands. If it is the same record format, and multiple members, OVRDBF FILE(A) MBR(*ALL) will put all of the members of your logical in the data path. If there are multiple record formats, this will do nothing to help you.


The Best Web Links: tips, tutorials and more.

Ask your programming questions--or help out your peers by answering them--in our live discussion forums.

Ask the Experts yourself: Our application development gurus are waiting to answer your programming questions.

Dig Deeper on iSeries COBOL programming

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.