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


Please Help Members By Posting Answers For Below Questions

What is %CHECK?

836


what are the different commands used in rlu ?

1436


what does dfu program you to do on a record?

718


what key word is used when screen is re-display?

639


Apart from opening of a file do we have any other use of USROPN?

945






how can I start a page in a new window?

771


how to read database records without locking them?

1110


distinguish between terminating a program through seton lr and return?

549


Difference Between Skip Before & Space Before?

660


How to add 99 menu (page down) option in menu creation..

1913


can a indexed file be accessed in arrival sequence in rpg program?

924


how to write code for singlepage in sqlrpgle with update ?

2356


what is the version of os/400 that we have?

936


Write a logic program for knowing the repeated number of a vowels in a given program?

3299


explain the purpose of keep and assume keywords?

1023