Q

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.

==================================
MORE INFORMATION ON THIS TOPIC
==================================

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.


This was first published in April 2003

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.

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

-ADS BY GOOGLE

SearchEnterpriseLinux

SearchDataCenter

Close