Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

what is the difference between udate and the system date?

1938


how to read database records without locking them?

1775


Pose, there are 100 records in the file.i need to retrieve all the records matching/equal to the particular name field. How can we do the above using search criteria other than using the if cond?

996


can we define multi-dimensional arrays in rpg ?

1559


What is data structure in as400? What is the use of data structure?

1033


why is as/400 called object oriented machine?

1626


is there any way I can ease my rpg controls on numeric input fields? How about an input date field?

1065


why is the declare cursor statement is used for?

1027


what is the purpose of data structure?

1684


during input operation which indicator position is seton if there is a record lock?

1533


Difference Between Interactive & Batch Job?

1192


how to declare a constant variable in the freeformat?

1364


Explain The Keywords Edtcde & Edtwrd?

1344


how many types of display are available on as/400 for user interaction?

1072


What are the different opcodes used for file operation on a subfile in a rpg pgm?

1765