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 |
Can a indexed file be accessed in arrival sequence in RPG?
without logical file we cannot access the data in physical file.but we specify physical file in the program(ie:- Ffile IF E k disk).how can it be accessed?
suppose a job is running for 15 minutes after that it goes to message wait? what are the impact analysis
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?
in which journalling which attributes are necessary??/
what is plat file?
two attributes which govern the excecution of a job>>>>??
what are the types of identifers
What is I90(Insure 90)?
How to index LF by relative record no (RRN)
How to find d key field of a pf that doesn’t have source physical file?
what is the difference between SETON RT & RETURN?