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

can anybody help me to solve this problem. the program that i m checking display error message saying "Record format for file AJDSPFFD does not match model file and decimal error. how to solve this problem. The AJDSPFFD is snapshot the AJTLOG that is the audit trail list.

2274


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?

511


What is the difference between iter and do?

668


How do u design a physical file, when you have 2 Unique fields like for eg in A student file student ID and student examination no both are unique

546


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

2720






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

483


What is a record lock error?

1259


how do I play {insert rpg system here}?

579


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?

1449


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?

4198


what do you mean by an input subfile, what are the keywords required?

766


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

1891


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

686


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

752


When we have a file with Duplicate records and I want to read the unique record from the file. For example a file containing Emp Name as 'Ram' and there are 3 entries of it. So how to read a unique record from File?

496