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

How to index LF by relative record no (RRN)

1 Answers  


can I touch the array during treatments?

0 Answers   IBM,


Hi friends, Can you give the solution for the below mention simple code.and explain.what is output D CHR1 S 4A INZ('PEN') D CHR2 S 10A INZ('MYGET') D CHR3 S 8A INZ('GOOD') D CHR4 S 22A INZ C MOVEL CHR1 CHR4 C MOVE CHR2 CHR4 C EVAL CHR4=CHR3 C MOVE CHR1 CHR4

4 Answers  


What are the necessary keywords required to code a message subfile?

3 Answers  


how do I declare a table or array in rpg iv?

0 Answers   IBM,


How to write record if no field or the field are different in physical file in rpgle ?

0 Answers  


wat is curser?? and its types???

4 Answers   HSBC,


1.CA(command Atention key)& CF(command Function key) difference with example?Please can any body tell me in real time exp? 2.Can any body tell me some mandatery function keys using while creating any screen with use of SDA-FUNCTION kEYS?

5 Answers   HCL,


What are the values of NUM1 and NUM2 after executing the following code? CLONO1NO2NO3 Factorl÷÷+OpcdeFactor2+÷+ResultLenDHHiLoEq C MOVE *LOVAL NUM1 50 C MOVE *J-fIVAL NtJM2 52

2 Answers   Fiserv, IBM,


How to declare the more than one file in cl/400.

13 Answers   IBM,


How to add 2 new fields in a file? How many ways are there in as400?

2 Answers  


Please tell me how to read the records from a file with load an array of size with error conditions(The logic answer for this question is ARR is array of 99 elements Z-ADD 0 IDX *LOVAL SETLL FILE READ FILE 99 *IN99 DOWEQ *OFF IDX ANDLT 99 ADD 1 IDX MOVE FIELD ARR,IDX READ FILE 99 ENDDO).So,Please give me the complete of this code.

0 Answers  


Categories