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

How can you delete a record from a file in RPG without using DELETE oppcode?

2 Answers   UST,


what is the necessary command needed before OPNQRYF and why?

5 Answers  


WHAT IS MEANT BY SIGNATURE VAILOTION ERROR

1 Answers   IBM,


check existence of one record without using chain or read?

1 Answers   IBM,


How can we receive values from a called procedure in CL?

1 Answers   IBM, NTT Data,






WHAT IS MENT BY RECORD LEVEL IDENTIFIER ? WHAT IS THE PURPOSE OF THIS?

1 Answers  


Program to read marks of 10 students for 4 subjects and compute and display total marks and status of each student in rpg

0 Answers  


which MONMSG will give higher priority in CL program? I know MONMSG are of two types. Program Level Monmsg and Command Monmsg?

1 Answers  


How many program bind in one module....

0 Answers  


Can we trigger an rpg program which has user interaction with display file when updating a file using the command ADDPFTRG?

2 Answers  


2. Which of the following statement(s) explains the difference(s) between the /INCLUDE and ICOPY directives? a.) No difference, they function the same b.) ACOPY cannot be used as a conditional directive c.) IINCLUDE files cannot contain embedded SQL d.) Nesting /TNCLUDE directives is not allowed

2 Answers   IBM,


how do I do concatenation in rpg iv, like I do in cl?

1 Answers   IBM,


Categories