How can we read a particular record from the database file
which is not having DDS (Flat File). For example, there are
100 records in the flat file. How can we retrive 15th
record in RPG/400 program (Without using CL)
Answer Posted / pravin
there are too many ways-
1. declare that flat file as a edf in pgm and rename the
rcd-format and field name than set the pointer on 15 record
by setll and then read it.
2. define a per-run time array with fromfile(name of flate
file). then see th2 arrays 15 index value.
this are two methods. i have 2 more methods also
if any one want's contact me on pravin_cse1@yahoo.com
| Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
what is data area and how it is used in rpg program ?
Program to read marks of 10 students for 4 subjects and compute and display total marks and status of each student in rpg
what is the rpg system?
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?
can I touch the array during treatments?
When we have a file with Duplicate records and I want to read the unique record from the file. For example a file containing Emp Name as 'Ram' and there are 3 entries of it. So how to read a unique record from File?
what happens when sflsiz = sflpag? What are the advantages and disadvantages?
how can I tell when to replace the array?
How would display prime numbers using CL program?
What is the difference between iter and do?
What is a record lock error?
do you use message subfiles? What are the necessary keywords required coding a message subfile?
what do you mean by an input subfile, what are the keywords required?
How to select highest score of each subject or how to select highest income of every month?
How can we know running job is batch or interactive?