Q. HOw can read multimember file through RPG/400 and CL/400
Actully i know that we can Read multimember file in RPG
through EXEFILE and EXEMBR and in cl through OVRDBF and
MEMBER(3)....But i want to read 3 members by CL Program And
RPG/400 program.Please write the coding(Program) for both
RPG/400 and CL/400 programs?
2.What are the full forms(stands) of EXEFILE and EXEMBR?

Answer Posted / abhishek bajpai

To read a multi member file.. u only need EXTMBR.
EXTFILE is used so that the name of the file is verified at
runtime and not at compile time. It is also used so that
the program opens the file from a desired library only (by
giving qualified name of the file as the parameter) and
not from the library list as usual.

To read the 3 members of a file..u must know the name of
the 3 members. On the F spec define the file with
EXTMBR(VAR1) USROPN
where Var1 is a variable. Before opening the file populate
Var1 with the member name in caps. And read the file.
In CL use OVRDBF as usual with the member name.

Is This Answer Correct ?    24 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how many specifications are there in rpg/400? What are they?

1089


How can we update a specific field in RPG?

925


what is a keyed physical file?

998


how can database records be read without lock ?

1212


name few ibm supplied libraries?

1211






what opcode will be used to test the zone of a character field?

1072


what is overlay?

675


Explain this error: "all record formats for externally-described file abcd ignored or dropped due to error; file ignored."?

744


what is the use of jdftval in join logical file?

1110


what is the use of sflend keyword?

974


what are members?

605


How we will get issues on AS/400 technology ? I mean which issue/Defect Tracking tool is using in all companies when any issue comes? Can anybody explain about the work flow of AS/400 project ? plzzz

1154


what is the use of dspatr(mdt) keyword?

1441


what is a non-join logical file?

971


what would be the effect on the field where reverse image, underline and highlight display attributes were active?

929