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
How to handle duplicate error handling in RPG?
what is the rpg system?
How can we know running job is batch or interactive?
how do you use commitment control in rpg?
is this a rpg channel?
which program rpg or cl is efficent to update a transaction onto a database file and why ?
what is the necessary keyword needed to scroll subfile records?
What is the diff bw PF/LF Name and their Record format name? what is restriction in record format then file name?
How to call one program from another program in RPG? please help me with the code
can any one help in hawkeye and turnover or any change management system plzzzzz or send the documents to my mail id :gvsp.as4@gmail.com
how do I play {insert rpg system here}?
How to define data area in RPG program? In which scenario multi occurrence DS is use in AS400?
what is data area and how it is used in rpg program ?
When it is desirable to describe files Internally?
Interviewer asked me write down DDS for load all subfile .can anybody write dds