Suppose you have 3 members in a database file. How to read
records from all the members
Without using CL (OVRDBF) i.e. it should be handled
exclusively in an RPG program?
Answer Posted / sumit gupta
if you want to read a particular member/or all member
records in RPG program without OVRDBF in CL program. Then,
you can use EXTMBR keyword.
Declare a file in f specs and in keyword option write
1) EXTMBR(*ALL)
or
2) EXTMBR(MEMBER NAME)
Member Name must be in CAPS as if you dont put it in CAPS
then severity 30 error comes while compilation.
| Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
can a indexed file be accessed in arrival sequence in rpg program?
an access path may be in which sequence?
how can you check for a records existence without causing and i/o (chain/read)?
which type of object is used in db2/400?
how will you display a particular page in subfile ?
Hi,Please give me the the answer for these quesitons? 1.what is IFS and ICF and RAPE amd DISKET fils? explain with example please? 2.What is the difference between POST AND SPACE OPCODES? 3.Can anybody tell me default printerfile command and object type?
how can you detect and handle a record lock situation?
what is a logical file?
what are various techniques to pass parameters from one program to another?
can a join logical file be updated?
what is the difference between seton lr and retrn?
some special characters I key in my html source members show different on my web pages. Why? How can I solve this?
can you specify a display file to be used in the following modes input,output, or combined modes ?
when do you use f-spec. Continuation line ?
What Is The Error If We Don't Get Login Screen?