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
how can you display specific subfile page on the screen in unequal subfile?
can I touch the array during treatments?
what is a rpg?
How to write record if no field or the field are different in physical file in rpgle ?
How many program bind in one module....
What is the difference between iter and do?
How can we override a file during runtime in rpg?
what is the use of sflnxtchg?
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?
what is an online rpg?
how do I declare a table or array in rpg iv?
Explain mdt?
can you debug ile rpg program using isdb?
How can we know running job is batch or interactive?
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