165 pts.
Q:
Necessity of a multi-member PF in COBOL
How do we read a multimember PF in cobol ?How does it differ from a regular PF ?

Software/Hardware used:
AS400
ASKED: Nov 27 2009  9:05 AM GMT
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
605 pts.
A:
 RATE THIS ANSWER
0
Click to Vote:
  •   0
  •  0
  • Bookmark and Share
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)
Last Answered: Nov 27 2009  3:54 PM GMT by Kevleemor   605 pts.
Discuss This Answer:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _



_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

NarasimhaReddy   175 pts.  |   Nov 28 2009  10:35AM GMT

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.