Necessity of a multi-member PF in COBOL

165 pts.
Tags:
COBOL
Physical Files
How do we read a multimember PF in cobol ?How does it differ from a regular PF ?

Software/Hardware used:
AS400

Answer Wiki

Thanks. We'll let you know when a new response is added.

A physical file with multiple members all have the same record format definitions, but the actual data in one member is kept separate from the other members. Every physical file defaults to 1 member during creation.
Why do this? 1 example is receving a batch of data in a time stamped member. Each batch is kept separate & you can determine when you received it.
How to use the data? You need to use the OVRDBF command.
OVRDBF FILE(PROGFILE) TOFILE(LIBRARY/FILENAME) MBR(MEMBER)

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • NarasimhaReddy
    We must know the member name before using file in COBOL. By default 1st member is accessed always. To access any member other than 1st member you need to use OVRDBF in CL before calling COBOL program. If you don't have CL before this, you can actually execute this from COBOL using API QCMDEXC before opening paticular file. Use OOVRDBF command with correct scope.
    225 pointsBadges:
    report

Forgot Password

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

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following