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



Q. HOw can read multimember file through RPG/400 and CL/400 Actully i know that we can Read multim..

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

Q. HOw can read multimember file through RPG/400 and CL/400 Actully i know that we can Read multim..

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

Q. HOw can read multimember file through RPG/400 and CL/400 Actully i know that we can Read multim..

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

Q. HOw can read multimember file through RPG/400 and CL/400 Actully i know that we can Read multim..

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

Q. HOw can read multimember file through RPG/400 and CL/400 Actully i know that we can Read multim..

Answer / ajay

yow can make a lf and use that lf in ur rpg pgm

Is This Answer Correct ?    0 Yes 16 No

Post New Answer

More IBM AS400 AllOther Interview Questions

If login Screen has been modified by adding current date to be displayed. What Step to be followed to Keep that date as Current date Note: If no steps taken then it will display only the compilation date

2 Answers   BridgeStone,


define a shared access path?

1 Answers   IBM,


What is the difference between crtdupobj and copyf?

0 Answers  


OVRDBF FILE(xxx) TOFILE(libl/filename) share(*yes) In which scenario is share(*yes) used? could any one explain with an example?

3 Answers   IBM,


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

1 Answers   IBM,






how to toggle between single line and multi - line display of a particular record in a subfile?

1 Answers   IBM,


what is scan and xlate?

1 Answers   IBM,


What would be the output of the variable result? D RESULT S 5S O INZ(00011) C EVAL RESULT = %TRIM(RESULT) Please give me the correct answer for this A.0001 b.compile time error c.11 d.Runtime error

5 Answers  


What are the types of data structure in as400?

0 Answers  


What is the maximum length of a variable name in CL?

1 Answers  


I had ruestion in one of the interview..... If 1 file has more than 1 member and i want to use the 2nd member in the RPG pgm (in RPG400),how can I use this.... I know the possible answers i.e. useing API 'QCMDEXE' or Before calling the pgm I can use OVRDBF for that member... but I dont' want to use both the tips in above scenarion. Does any body tell me how can i use this ....?

13 Answers   Mind Tree,


what does opcode post do ?

1 Answers   IBM,


Categories