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 / 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 |
Post New Answer View All Answers
What is %CHECK?
what are the different commands used in rlu ?
what does dfu program you to do on a record?
what key word is used when screen is re-display?
Apart from opening of a file do we have any other use of USROPN?
how can I start a page in a new window?
how to read database records without locking them?
distinguish between terminating a program through seton lr and return?
Difference Between Skip Before & Space Before?
How to add 99 menu (page down) option in menu creation..
can a indexed file be accessed in arrival sequence in rpg program?
how to write code for singlepage in sqlrpgle with update ?
what is the version of os/400 that we have?
Write a logic program for knowing the repeated number of a vowels in a given program?
explain the purpose of keep and assume keywords?