Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 can I tell when to replace the array?

1268


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

1023


what are the key words you must use when using a subfile?

1239


What is ment by record level identifier?

1187


how does the rpg element work?

1294


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?

989


what is the necessary keyword needed to scroll subfile records?

1220


what is the use of sflnxtchg?

1316


How to handle duplicate error handling in RPG?

2352


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

1381


What is the difference between iter and do?

1267


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?

1301


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.

2678


How to define data area in RPG program? In which scenario multi occurrence DS is use in AS400?

2062


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

1790