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 ?    17 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 ?    11 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

I have a file .In that file i have 3 fields. Those fields are eno, ename, esal.Keyfield is eno. In that file i have data like this for eno 1,2,3,4,5. Now i need to display 2nd record. That means i need to set the pointer on 2nd record... Then, write the complete rpg program using setll.

1 Answers  


What is the syntax of passing parameters to a procedure by value?

1 Answers  


The PGMA calls PGMB.PGMB generates a report.The report should contain the called program name(PGMA).How do i get the called program name in PGMB to print it on the spool file?(calling program name should NOT be hard coded or passed as parameter to called program?

6 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  


what is an online rpg?

0 Answers   IBM,


I need to generate outfile for object of all the user lib. in the sysmte using cmd DSPOBJD. But this cmd is correcpted in my server,Any body tell me is there any alternative...?

2 Answers  


Why Rpg/400 is Famous?

2 Answers   IBM,


1.Write code to read the records from a file and load an array of size 99? Make sure that you take care of all the error conditions?

2 Answers   HSBC,


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,


please help me answer to this question what is the difference between the binding and srvpgm in ilerpg?

4 Answers   HCL,


Q:Hi all,i want accurate answer with code using in built functions.please sent me code as soon as posible. I have program nmed PGM1 which '' RETRIEVE Current production date''should correctly default the production date for the user who is issuing raw materials to the manufacturing.The production date can be different from the celendra date. However, the program does not make the correct adjustment for all manufacturing plants. there is a parameter which determines the production start time e.g. 07:00 if the system time precedes this,the program subtracts one from the celendra day.This work fine when the celendar day starts after production day as it does in England,the system should be adding one to the celendar day during the overlap. unfortunately the program was desined to assumed the celendar day always starts before the production day. Change required in the program: Change the PROGRAM PGM1 to use the new parrameter to decide whether to add or subtract 1 from the celendar day when determining the production date.

0 Answers   TCS,


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

7 Answers   IBM,


Categories