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

in which journalling which attributes are necessary

2 Answers   CTS,


Suppose I have 3 jobs a b and c. I want to submit b after successful completion of a and want to submit c after successful completion of b. Without using job scheduler or job queue, how can I do that through cl program?

1 Answers  


In a particular program one file is used where override command is applied to a file, now this program calls another program where we want to use the same file but without override.How it can be done?

6 Answers   Hexaware,


What would be the effect on the field where reverse image, underline and high intensity?

7 Answers   IBM,


Mr.Yallamanda Reddy P thanks for your answer sir,can we use test(D) opcode in RPG/400,if yes please help me by eloborating on that answer by writing a sample code for that sir

2 Answers   iGate,






how can an indexed file be used as arrival sequence in RPG?

3 Answers   IBM,


What will be the value of STRING after line 0106 is executed in the code below? 0101 E* Fromfiletofile..tabnameprnentlenpdatabnamlenpda 0102 E ARR 8 1 0103 ISTRING DS 0104 I 1 8 ARR 0105 C MOVE *BLANK STRING 0106 C MOVEA'ABC' ARR A) 'AAAAAAAA' B) 'BBBBBBBB' C) 'CCCCCCCC' D) 'ABC ' E) ' ABC'

2 Answers  


if there is a module object , how to find the program object for this module object.Assume the module object name and program object name is not same.

0 Answers  


what is the procedure and explain about real time scenario.

0 Answers   Adhoc Technologies, Hanuman Automation, HSBC, IBM,


what are the key words you must use when using a subfile?

0 Answers   IBM,


in which journalling which attributes are necessary??/

1 Answers   CTS,


What is the name of default out queue when user logs inn to syatem with valid profile?

3 Answers   IBM,


Categories