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

If i change any file through application after entering data , how to check which file is updated through applications . For call stack we takes esc 3 then we chose 11..But What is answer of below qtn..?

1488


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?

2097


what is message subfile?

1064


how many levels are there in a physical file?

1015


how you will find an error which is not in the first page of the subfile without using rolldown key?

570






how do you specify the number of records to roll in a subfile ?

1264


how to write code for singlepage in sqlrpgle with update ?

2373


define a shared access path?

1007


how can a message from a message file appear as a constant on the screen?

952


What is file access opcodes?

767


Why we sometimes use same file name in file and tofile in ovrdbf and sometimes different?

667


which cl command is used to trap error messages during program execution?

874


If I want to execute Sftp commands(LS & GET) stored in Physical file from CL program automatically...Can u Plz tell me how can I do this?...How the script will look?? THANX FOR NY HELP...

2195


when do you use f-spec. Continuation line ?

991


what is a composite key?

1037