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
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|
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
|Is This Answer Correct ?||18 Yes||0 No|
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
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|
Answer / vivek
USING MEMBER MAPPING IN LF THEN THIS LF USE IN RPG PROGRAM.
PF@1 CONTAIN 3 MEMBER LIKE M1,M2,M3 AND FIELDS OF
NAME AND ID
R R1 PFILE(PF@1)
AFTER THAT LF USE IN RPG PROGRAM. TRy now.
|Is This Answer Correct ?||0 Yes||0 No|
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|
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|
How many PARM statement can we use in a CL program?
how may a cgi control duplicate inputs?
define the purpose of the iter operation?
pf named karthik 3members jan feb mar cmd must executed create mbr ar ap
whare we can use IN AND OUT AND UNLCK opcodes?please can any body tell me in real time senario with example
define a output queue?
What is SFLSIZ ?
Can any one explain the basic things about RLU and Printer Files and their Definitions for both and why are they used,i'm a newbee so please help me out
what does check opcode do ?
difference between view and index ?
What is SAA?
What is Job, What are the attributes of a Job?