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?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / swetha p rao
Thats not EXE thts EXTMBR and EXTFILE.which means External
file and external member.
| Is This Answer Correct ? | 18 Yes | 2 No |
Answer / gagan
in Cl using command DSPFD get the list of all the members of a PF in a outfile .
Then read that outfile in loop.it will read all the members in loop
| Is This Answer Correct ? | 5 Yes | 2 No |
Answer / syam
You can read all members dynamicaly in ILE RPG
in F specification use EXTMBR('*ALL')
| Is This Answer Correct ? | 7 Yes | 6 No |
how do you pass parameters in cl?
which type of object is used in db2/400?
Dear All, I have one confusion related to my platform. I am working with Wipro from last two year however still I am looking for AS400 platform kindly show me the way out of it. And please share with me the hardware knowledge that how I grow myself in hardware (AS/400) also.
OVRDBF FILE(xxx) TOFILE(libl/filename) share(*yes) In which scenario is share(*yes) used? could any one explain with an example?
When does the DFT keyword in PF be used?
STRTCPFTP command is used to start FTP in CL Language (ILECL)....can u plz tell me which command is used to start SFTP in CL language(ILECL)?
what is the syntax for plist?
what are all the contents of subfile?
Explain The Keywords Edtcde & Edtwrd?
can we define multi-dimensional arrays in rpg ?
How many primary files allowed in a program?
define what a data area is along with a brief example of what it may be used for?