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


Please Help Members By Posting Answers For Below Questions

how do I preserve and clean the array?

677


How to write record if no field or the field are different in physical file in rpgle ?

494


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?

4221


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

1901


How to call one program from another program in RPG? please help me with the code

1265






Explain mdt?

667


what is the procedure and explain about real time scenario.

1484


what is data area and how it is used in rpg program ?

758


do you use message subfiles? What are the necessary keywords required coding a message subfile?

694


How to declare the pull button in AS/400..

1884


what is *place and *auto keyword in prtf ?plz explain

2732


When it is desirable to describe files Internally?

1196


what is the difference between do while and do until?

716


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?

1459


what is program status data structure?

1396