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

Answers were Sorted based on User's Feedback



Suppose we have 10 records with same name and we are reading using READE,after 4 record i have to us..

Answer / ganesh kandaswamy

Chain is nothing but the combination of setll and reade. After reaching 4th record if we chain it will again reading the 1st record.

Is This Answer Correct ?    7 Yes 0 No

Suppose we have 10 records with same name and we are reading using READE,after 4 record i have to us..

Answer / ravi kumar

Once check the question again...

Is This Answer Correct ?    0 Yes 0 No

Suppose we have 10 records with same name and we are reading using READE,after 4 record i have to us..

Answer / aanchal

After reading 4 records if we chain the file. It will read the 4th record. That is the 4th record will be read twice.

Is This Answer Correct ?    0 Yes 5 No

Post New Answer

More RPG400 Interview Questions

what is program status data structure?

1 Answers   IBM,


How to find d key field of a pf that doesn’t have source physical file?

2 Answers  


How do you code file / field renames in ILE RPG?

4 Answers   Accenture, IBM,


How to change the name of physical members Dynamically?

1 Answers  


What is the RPG cycle?

3 Answers   CSC,






i hav 2 logical files(L1,L2) both r derived from one physical file(P1). how can i use both the logical files in one RPG program? if yes what i have to d.

5 Answers   TCS,


1.WHAT IS WRONG WITH THE CODE BELOW? C CUSTNO CHAIN CUSTMAST IF %ERROR can any body find the wrong please? 2.What builtin function will you use to achieve the following functionality? C QTY IFLT *ZERO C QTY MULT-1 QTY ENDIF

5 Answers   CTS,


Suppose i am having 3 programs PgmA,pgmB,pgmC and using source debugger. At debugging time i found that pgmC having some code error..then in debug mode directly how can i debug pgmC

2 Answers  


What are the types of identifiers?

0 Answers  


I have one cl program which calls two rpg programs named a & b. I am loading a run time array in Pgm A and the control comes back to cl pgm. i call pgmb and I want to read the runtime array in pgmb which was loaded in pgma. How it can be acheived. I should not use any intermediate file or dataarea to store the loaded values.

2 Answers  


difference between 1:%found and %equal built function in detail with example .

6 Answers   Polaris,


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

4 Answers  


Categories