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 do I preserve and clean the array?
How to write record if no field or the field are different in physical file in rpgle ?
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?
thanks mr.Harshad R Suryawaunshi,i'm new to as400 i think you are telling in rpgile i know only rpg400 if possible can you tell in rpg400
How to call one program from another program in RPG? please help me with the code
Explain mdt?
what is the procedure and explain about real time scenario.
what is data area and how it is used in rpg program ?
do you use message subfiles? What are the necessary keywords required coding a message subfile?
How to declare the pull button in AS/400..
what is *place and *auto keyword in prtf ?plz explain
When it is desirable to describe files Internally?
what is the difference between do while and do until?
Suppose we have one database file and it is used by 5 programs and in 3 program we have to add some records in datbase file s what is the impact on other program?
what is program status data structure?