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?

Answers were Sorted based on User's Feedback



Suppose you have 3 members in a database file. How to read records from all the members With..

Answer / reecha

Using EXTMBR(member name) in the keyword option in the F
specs. For eg.

F filename I F E EXTMBR(mbrname)
This will open the particular member of the file.

Is This Answer Correct ?    19 Yes 1 No

Suppose you have 3 members in a database file. How to read records from all the members With..

Answer / shruti tayal

In F-spec use EXTMBR keyword, specify *ALL in quotes as the
parameter value, this will cause all members of the file to
get processed.

Is This Answer Correct ?    18 Yes 0 No

Suppose you have 3 members in a database file. How to read records from all the members With..

Answer / 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

Suppose you have 3 members in a database file. How to read records from all the members With..

Answer / vivek

USING MEMBER MAPPING IN LF THEN THIS LF USE IN RPG PROGRAM.
LET SEE,
PF@1 CONTAIN 3 MEMBER LIKE M1,M2,M3 AND FIELDS OF
NAME AND ID
LF@1
R R1 PFILE(PF@1)
K NAME
AFTER THAT LF USE IN RPG PROGRAM. TRy now.

Is This Answer Correct ?    0 Yes 0 No

Suppose you have 3 members in a database file. How to read records from all the members With..

Answer / reena

Create a logical file which contains the 3 members. Later
user the LF in RPG Program

Is This Answer Correct ?    1 Yes 2 No

Suppose you have 3 members in a database file. How to read records from all the members With..

Answer / syam

Create diff. 3 RUNQRY with 3 members and save it. Run this
QRY inside the RPG Program thru using EXEC CL Cammand.

Is This Answer Correct ?    4 Yes 11 No

Post New Answer

More IBM AS400 AllOther Interview Questions

records can be read/update/deleted with which file?

0 Answers   IBM,


Can anybody know what is Pick/Basic? Is it a programming language? can it be used in AS400 machine?

2 Answers  


How can u create a temporary file in CLP @ how to access that temporary file in RPG program?

4 Answers  


What is an ICF file?

1 Answers  


what is the difference between udate and the system date?

1 Answers   IBM,






when is a tag statement used in rpg?

2 Answers   IBM,


what is a keyed physical file?

1 Answers   IBM,


What is the native language of AS/400?

1 Answers  


How to know the number of records in a pf through clp program?

7 Answers   Bank Of America,


Q.How can more than two program be executed in batch mode through SBMJOB in CL PGM but the condition is that program must be executed one by one?Please wtite the senario? 2. IS it possibe more then two programs can be executed in batch mode and HOw it will be executed in CL program ,please write the senario?

6 Answers   IBM,


how can u check no of records in a file?

0 Answers   IBM,


can anybody give the interview questions list of RLU. plz mail me: dinesh_sati07@yahoo.com

0 Answers   HCL,


Categories