How to read alternative records in a pf by using rpg?
Answer Posted / krishna
sample code for alternative record in a pf
fsamplepfif e disk
/free
dow not %eof(samplepf);
read samplepf;
If %eof(samplepf);
Leave;
endif;
---------;(doing some actions based on the conditions)
read samplepf;
enddo;
*inlr = *on;
/end-free
| Is This Answer Correct ? | 1 Yes | 6 No |
Post New Answer View All Answers
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?
When it is desirable to describe files Internally?
Program to read marks of 10 students for 4 subjects and compute and display total marks and status of each student in rpg
how can you display specific subfile page on the screen in unequal subfile?
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
How many program bind in one module....
How to declare the pull button in AS/400..
what is an online rpg?
How Chain operation copies the record's data to the input buffer for the program?
what happens when sflsiz = sflpag? What are the advantages and disadvantages?
How would display prime numbers using CL program?
what are the key words you must use when using a subfile?
How can we know running job is batch or interactive?
how do you use commitment control in rpg?
how do I play {insert rpg system here}?