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 / 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 |
Post New Answer View All Answers
What is file identifier where we can use?
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?
Interviewer asked me write down DDS for load all subfile .can anybody write dds
How to handle duplicate error handling in RPG?
How to create a login screen using a command instead of display file.... intention is to get a password field on a command..... how do you achieve this...
during execution, an rpg/400 program automatically follows a sequence of operations for each record that is processed. The built-in program cycle includes the following logical steps.
How to define data area in RPG program? In which scenario multi occurrence DS is use in AS400?
What is the difference between copybooks and subprocedures in as400?
1.Load an runtime array of length 99 from the pf and you want to handle all the possible errors?
how do I preserve and clean the array?
What is difference between bind by copy and bind by reference?
do you use message subfiles? What are the necessary keywords required coding a message subfile?
Program to read marks of 10 students for 4 subjects and compute and display total marks and status of each student in rpg
Suppose we have one database file and it is used by 5 programs and in 3 program we have to add some records in datbase file s what is the impact on other program?
How to select highest score of each subject or how to select highest income of every month?