Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How to read data from Nth member of a physical file containing
some X number of members in it?
"Provided member names are unknown"

Answers were Sorted based on User's Feedback



How to read data from Nth member of a physical file containing some X number of members in it? &..

Answer / sandey243

Way:1
We can execute DSPFD with *OUTFILE option, using QCMDEXC in
RPGLE program then we can read the outfile to get the name
of the file, then after we can read the file.

Way2:
Make the file to have all members available i.e.,
EXTMBR(*ALL). Then move *HIVAL to RRN and do a SETGT on the
file... this will take the control to the bottom of the
first member...then READ will give you first record of the
Second member...... This way we can go to the member....
(This method I tried and succeeded)...

Is This Answer Correct ?    10 Yes 1 No

How to read data from Nth member of a physical file containing some X number of members in it? &..

Answer / deva

using EXTMBR

Is This Answer Correct ?    1 Yes 1 No

How to read data from Nth member of a physical file containing some X number of members in it? &..

Answer / zavith ahamed

to declare f spec extmbr(*all) to read the  data from file

Is This Answer Correct ?    0 Yes 1 No

How to read data from Nth member of a physical file containing some X number of members in it? &..

Answer / sakshi bansal

I tthink we can use OVRDBF command in Cl and call RPG through it.

Is This Answer Correct ?    0 Yes 5 No

Post New Answer

More RPG400 Interview Questions

Are all these RPG/400 Interviewed Questions being asked recently? are current?

1 Answers  


1.How you will find the program is batch or online in cl pgm? 2.How you will end the batch pgm when the job runs? write an logic? 3.In wich command the option *drop is used?

2 Answers   TCS,


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)

6 Answers   CTS, IBM,


Hi guys. Im in AS/400(RPGLE,CLP) from last 1 year.Now i wan to upgrade my Knowledge in AS/400. Suggest me some new fields & courses which falls under AS/400. Waiting for your quick Response.

1 Answers   Voltech,


How do u design a physical file, when you have 2 Unique fields like for eg in A student file student ID and student examination no both are unique

0 Answers  


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

0 Answers  


Delete FileName at first statement in RPG.

1 Answers  


As Packed veriable store 2 digits in 1 byte and ZONE variable store 1 digit in 1 byte... Please tell me when we have to use Packed and Zone variable...?

1 Answers  


How can we call CL program to RPG? How many number of parameter we can pass

2 Answers   TCS,


what is difference between DSPFD and DSPFFD?please give me real senario with good example?

1 Answers  


purpose of pannel group??/

2 Answers   CTS,


how to display all the members records in a physical file without using ovrdbf?

9 Answers  


Categories