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 |
Hi friends, I am using a load all subfile , and currently i am in in the third page of the subfile , from third page i have selected a record and called some other program .on returning, subfile is being loaded from the frist page. so can any one kindly suggest me in retaining my third page after returning. i.e loading from third page.
How do you find whether a record is locked or not?
What is the purpose of PUTOVR keyword?
i'm working on progA , in that program i want to see the userids of the users who work on this program?
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?
parameters cannot be passed in which one??
Interviewer asked me write down DDS for load all subfile .can anybody write dds
what is plat file?
what is the necessary command needed before OPNQRYF and why?
1.CA(command Atention key)& CF(command Function key) difference with example?Please can any body tell me in real time exp? 2.Can any body tell me some mandatery function keys using while creating any screen with use of SDA-FUNCTION kEYS?
Can more than one subfile record be displayed on one line?
how can an indexed file be used as arrival sequence in RPG?