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

why we do STRSRVJOB in batch debugging in as400

1 Answers  


When we have a file with Duplicate records and I want to read the unique record from the file. For example a file containing Emp Name as 'Ram' and there are 3 entries of it. So how to read a unique record from File?

0 Answers  


1.String operatio such as moving the characters to the variables? 2.what are the building functions for check file longs? 3.which of the following methods will make externally describe file fields available to a program? A: A/copy statement that specifies the library file and member of the field reference file source code B: A data structure definition specification that names the file on the EXTNAME keyword C: A data structure definition specification that names the file on the IMPORT keyword? D: A Definition specification for each desired field with the REFFLD keyword

1 Answers   CSC, CTS,


Difference between RESET and CLEAR

1 Answers   TCS,


How to create a key field for a logical file inside RPG?

4 Answers   HSBC,






Some times While checking MSGW for object / member / record locks ,I have seen it's locked by itself ...? How it happen and what action we need to perform if job is updating / writing a record....?

6 Answers   HSBC,


what is the difference between the procedure and module in ILERPG?

4 Answers  


can anybody explain significance of *loval setll with example code????

3 Answers   HSBC,


how to retrieve particular field records from a physical file,say i have a physical file called 'employee' in it i have to retrieve the records of a field 'admin' present in pf 'employee' using rpg,but i should not use logical file or openquery file.

3 Answers   iGate, Wipro,


difference between CHAIN and READE?

8 Answers   HCL,


how to run only 10 modules of existing N modules in service program in RPGILE ?

3 Answers   Wipro,


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

4 Answers   IBM,


Categories