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


Please Help Members By Posting Answers For Below Questions

What is file identifier where we can use?

633


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?

4188


Interviewer asked me write down DDS for load all subfile .can anybody write dds

1007


How to handle duplicate error handling in RPG?

1664


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...

1300






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.

745


How to define data area in RPG program? In which scenario multi occurrence DS is use in AS400?

1550


What is the difference between copybooks and subprocedures in as400?

799


1.Load an runtime array of length 99 from the pf and you want to handle all the possible errors?

2358


how do I preserve and clean the array?

665


What is difference between bind by copy and bind by reference?

1714


do you use message subfiles? What are the necessary keywords required coding a message subfile?

677


Program to read marks of 10 students for 4 subjects and compute and display total marks and status of each student in rpg

712


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?

1441


How to select highest score of each subject or how to select highest income of every month?

1281