suppose there are 100 records and i want to read records between 60-70 how we can read this 10 records in rpg
Answers were Sorted based on User's Feedback
Answer / siyan sinhag
It such a easy question. Make few way to solve. one of my way. Declare the file and do yourself coding atlast what you do,
Setll RRN REC;
Dow (n <=10);
n= n+1;
....
....
enddo;
| Is This Answer Correct ? | 7 Yes | 2 No |
Answer / 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 |
How to read alternative records in a pf by using rpg?
why subproc not run in dftactgrp?????/plz explain
How to find d key field of a pf that doesn’t have source physical file?
How many program bind in one module....
WHAT IS MEANT BY SIGNATURE VAILOTION ERROR
suppose one file is used by 100 user and file is locked by 100 user, what are the impact analysis?
Maximum how many files declare in rpgle
How to sort an array in descending in RPG
1.Can any body share me about thease opcodes with example please.Im new for AS/400.Could u please tell me in real senario? 1.TESTN, 2.EVAL 3.EVALR, TIME, 4.MONITOR 5. ENDMON 6.ON-ERROR 7.COMMIT ROLLBACK?
Why we cannot call a service program? If I add a PEP can i call the service program?
How do I read records from Subfile? what is the purpose of READC explain with example?
1.I have a Physical file with 100 records, No duplicates exists, all are Unique,But while i am running Runqry utility i am getting only 80 records..What could be the reason?