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
When it is desirable to describe files Internally?
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
what is the rpg system?
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?
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...........
how can you display specific subfile page on the screen in unequal subfile?
What is the difference between copybooks and subprocedures in as400?
What is a record lock error?
How can we know running job is batch or interactive?
how does the rpg element work?
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?
How would display prime numbers using CL program?
How to handle duplicate error handling in RPG?
What is difference between bind by copy and bind by reference?
What is the diff bw PF/LF Name and their Record format name? what is restriction in record format then file name?