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
what is subfile?
what is the maximum number of files allowed in rpg?
hi guys i am new for sqlrpgle, please suggest me good websites and theory and coding. plz plz its very urgent.
what is the purpose of data structure?
how to toggle between single line and multi - line display of a particular record in a subfile?
what is the purpose of ovrdta and ovrata keywords ?
how can u check no of records in a file?
how do you read data area in an rpg program?
what is message file?
What is array in as400? What are the types of array?
which single rpg opcode performs both setll and reade?
under given circumstances, my cgi should link to another site. How to implement this?
is their a difference in cobol400 for the release 5.2 and 6.1 at the as400.
some special characters I key in my html source members show different on my web pages. Why? How can I solve this?
what would be the effect on the field where reverse image, underline and highlight display attributes are active ?