suppose there are 100 records and i want to read records between 60-70 how we can read this 10 records in rpg
Answer Posted / surya siram
Hi,
Declare the physical file and make sure the physical file shouldn't have any keys. Load value 60 into RRN variable and then by using SETLL RRN PF, hit the physical file. Then increment the RRN upto 70 and read the records.
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
how can I tell when to replace the array?
How to write record if no field or the field are different in physical file in rpgle ?
what are the key words you must use when using a subfile?
What is ment by record level identifier?
how does the rpg element work?
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 necessary keyword needed to scroll subfile records?
what is the use of sflnxtchg?
How to handle duplicate error handling in RPG?
what is data area and how it is used in rpg program ?
What is the difference between iter and do?
We have job which is running as batch. It takes atleast 06 hours to complete tht job. But I wanna do tht job with in 3 hours?
if there is a module object , how to find the program object for this module object.Assume the module object name and program object name is not same.
How to define data area in RPG program? In which scenario multi occurrence DS is use in AS400?
How to call one program from another program in RPG? please help me with the code