If the last record of a file has been read, and the next
operation on that file is a READ operation, what will be
the values of the input fields for that file?

A. They will be blank and/or zero.
B. They will be null.
C. They will equal the values of the first record in the
file.
D. They will equal the values of the last record read.

Answers were Sorted based on User's Feedback



If the last record of a file has been read, and the next operation on that file is a READ operatio..

Answer / zahid

Option D is your answer.

Is This Answer Correct ?    16 Yes 2 No

If the last record of a file has been read, and the next operation on that file is a READ operatio..

Answer / manikandan

ans:
d.They will equal the values of the last record read.
let me know other answer thank u

Is This Answer Correct ?    10 Yes 1 No

If the last record of a file has been read, and the next operation on that file is a READ operatio..

Answer / rahul

iT may depend on situation......on loop.....do while...or
not...thats all

Is This Answer Correct ?    0 Yes 5 No

Post New Answer

More RPG400 Interview Questions

Can a indexed file be accessed in arrival sequence in RPG?

1 Answers  


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  


two attributes which govern the excecution of a job>>>>??

2 Answers   CTS,


How to set on/off a group of indicators in a single statement?

3 Answers  


Why there is invention of RPG if we can do insert update delete in CL through SQL.Why the rise of RPG?

1 Answers   Infogain,






I have file with data as follows data 1 2 3 4 5 I need to read 1 and 5 ,then 2 and 4 then like.. upto end of file, can any one help on this

3 Answers   ISG,


1. I have2 records in a PF. READ PF DO DSPLY EMPNO RETRN DSPLY EMPNO ENDDO What was the output 2. SETON LR vs RETURN 3. Primary File 4. How to delete a deleted spaces 5. How to read a PF in reverse order in CL 6. I have a object in Lib A, B and C. But it shows in D Lib..Why? 7.

4 Answers   HCL,


What you have to do in the display file when you are using message subfile?

1 Answers  


do you use message subfiles? What are the necessary keywords required coding a message subfile?

0 Answers   IBM,


How Commitment and Roll back control is used in as400, explain with real time senario ???

2 Answers   Acolite, HSBC,


difference between CHAIN and READE?

8 Answers   HCL,


Need a sql query: retrieve all duplicate records in table?

1 Answers  


Categories