How I can reread the physical file in CL program once the
end of file reached in same CL program.
Answer Posted / naga srinivas
WE can't read the file again once you reached end of file.
If you want to use the POSDBF command before reaching the
end of file you make to position to starting.Use RTVMBRD, we
get the number of records in the file.Count the number of
records retrieved.When the count becomes equal to number of
records in PF..use POSDBF and make the cursor position to
intial record
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
How to handle duplicate error handling in RPG?
what is data area and how it is used in rpg program ?
what is file information data structure?
what is an online rpg?
What is file identifier where we can use?
what are the key words you must use when using a subfile?
during execution, an rpg/400 program automatically follows a sequence of operations for each record that is processed. The built-in program cycle includes the following logical steps.
1. What is bound-by-call and bound-by-reference? 2. Where and why is *Nomain used? 3. What are the difficulties faced by programmers when using service programs? 4. Explain the different ways of parsing and compiling XML in iSeries.
what is kids-rpg?
how does the rpg element work?
what is the difference between do while and do until?
how do I preserve and clean the array?
If my rpg program has a date field, what extra care I have to take while compiling that rpg program? If the file is keyed and I have declared the file as well as key list properly in my program. Still am getting an error message like "chain/reade operation is not allowed" what may be the case?
what do you mean by an input subfile, what are the keywords required?
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?