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

When it is desirable to describe files Internally?

1178


write an RPG program to calculate the marks of 5 students (A,B, C, D, E)in 3 different subjects (eng, math, sci) an display on the screen

822


what is the rpg system?

660


If my rpg program has a date field, what extra care I have to take while compiling that rpg program? If the file is keyed and I have declared the file as well as key list properly in my program. Still am getting an error message like "chain/reade operation is not allowed" what may be the case?

605


give an eg of ACQ-(ACQUIRE),BIT OFF,BIT ON,DEALLOC,DUMP,FEOD,FORCE,MHHZO,MHLZO,MHLLZO,MLHZO,REL,RESET,TESTZ,TESTB,TESTN----GIVE SMALL EXAMPLE TO THE OPCODES...TO UNDERSTAND FUNCTIONING...........

3264






how can you display specific subfile page on the screen in unequal subfile?

667


What is the difference between copybooks and subprocedures in as400?

799


What is a record lock error?

1254


How can we know running job is batch or interactive?

641


how does the rpg element work?

709


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?

4189


How would display prime numbers using CL program?

5666


How to handle duplicate error handling in RPG?

1664


What is difference between bind by copy and bind by reference?

1714


What is the diff bw PF/LF Name and their Record format name? what is restriction in record format then file name?

2509