1.How to read a subfile in out put mode?
2.what are the keywords used to share same file?
3.using composite key which rpg code used?

Answers were Sorted based on User's Feedback



1.How to read a subfile in out put mode? 2.what are the keywords used to share same file? 3.using ..

Answer / syam

A2. Share open data path = *Yes
A3. KLIST & KFLD in Free Format %KDS

Is This Answer Correct ?    1 Yes 0 No

1.How to read a subfile in out put mode? 2.what are the keywords used to share same file? 3.using ..

Answer / preethi

1. Why do u need to read a subfile which is in output mode? There is going to be no changed record, so READC will not work.
3. KLIST

Is This Answer Correct ?    1 Yes 0 No

1.How to read a subfile in out put mode? 2.what are the keywords used to share same file? 3.using ..

Answer / abhiraj

a1. by CHAIN opcode
a2 and a3 same as syam's ans

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More RPG400 Interview Questions

Can any one plz explain the concept of INFSR, *PSSR, INFDS AND PSDS, I' confusing about PSDS and *PSSR, Wat is the difference btw them, wat PSDS will do????

1 Answers  


how can we know running job is batch or intractive ? i need all the possibilites.........plz help me

3 Answers   HSBC, IBM,


In single page subfile,if I select the mutiple options in 1 page and without pressing enter,I press rollup key (pagedown).In such case how I can handle it in rpg becasue in single page we have to handle it in pgm. It would be helpful if any one answer with coding

4 Answers   Infinite Computer Solutions,


explain sflclr, sflend, sfldlt, and sflcsrrrn?

0 Answers   IBM,


Suppose we have 10 records with same name and we are reading using READE,after 4 record i have to use CHAIN what is the output

3 Answers  






Why we cannot call a service program? If I add a PEP can i call the service program?

1 Answers   DELL,


Why did we give STRSRVJOB while debugging batch program

3 Answers   HBL Power Systems,


Can we used ovrdbf command after the opnqry file if yes then What will be out put of your program?

4 Answers   IBM,


Can we journel logical file and access path? Can we use commitment control for non-join L.F?

4 Answers  


two types of read performed in dataqueue?????

4 Answers   CTS,


A rpg or clp command to find if the file field is defined as a character or numeric field.

1 Answers   IBM,


I have some doubts on subfile----------- -----I wrote a prog on subfile to display the records. Every thing is clear but i defined a field called "opt" as input field in subfile record format from that input field i wish to enter into new screen called "EDIT" which i created it as a separate RCD in display file. i gave opt as 2 for edit just like in WRKMBRPDM screen please telll me the code and how can i code for it in RPG.

3 Answers  


Categories