i have a file with the values 10, 20, 30, 40, if am setll with
the value 25 then readp, so what it will return?
Answer Posted / thakur
Ladies, don't fight.
Answer is simple:-
If you do setll with 25 and then READP ,program will read last record as SETLL sets pointer using RRN and not field value.
For eg:- To retrieve 2nd record , you have to set pointer at 3rd record and then READP.
| Is This Answer Correct ? | 1 Yes | 3 No |
Post New Answer View All Answers
What is the purpose of record level identifier?
do you use message subfiles? What are the necessary keywords required coding a message subfile?
are there any useful c runtime apis that I can call from rpg iv?
what is the necessary keyword needed to scroll subfile records?
what is kids-rpg?
Hi Viewers can any body explain me how to update and ahange the already existed data in physical file using subfile ? please explain me with the code if possible?
write an RPG program to calculate the marks of 5 students (A,B, C, D, E)in 3 different subjects (eng, math, sci) an display on the screen
What are the types of identifiers?
Explain mdt?
is this a rpg channel?
Assume 2 users are using the same file and first user updates some record in the file. Will the 2nd user will be able to see the updated record or not?
What is the difference between copybooks and subprocedures in as400?
how can you display specific subfile page on the screen in unequal subfile?
what happens when sflsiz = sflpag? What are the advantages and disadvantages?
how do you use commitment control in rpg?