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

I had ruestion in one of the interview.....
If 1 file has more than 1 member and i want to use the 2nd
member in the RPG pgm (in RPG400),how can I use this....
I know the possible answers i.e. useing API 'QCMDEXE' or
Before calling the pgm I can use OVRDBF for that member...

but I dont' want to use both the tips in above scenarion.

Does any body tell me how can i use this ....?

Answer Posted / sweta

What is the scenario exactly , You want to access all the
members of the file one by one and you donno the names of
the memebers


or

You want to access only second member and you donno the
name of the member
If you want to use only second number then define a
variable and initialise it with second member name.and in F
spec define the extmbr.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

using dfu, user will be able to ___________ from physical file?

988


what is the length of a variable in rpg?

1674


what is the purpose of data structure?

1734


Difference between NOPASS & OMIT?

1845


What is program status data structure(psds) in as400?

1079


what does dfu program you to do on a record?

1218


what is the favicon.ico request that my site receives now and then?

1100


what is a logical file?

1802


how can database records be read without lock ?

1930


Using %check we are checking monika in mona what is output? What is %SCAN?

1663


what is the difference between *like and *namvar ?

2533


what is the purpose of ovrdta (override data) keyword?

1813


what is the maximum number of parameters allowed in rpg?

1733


what are the various types of device files?

1674


what are the two record formats a subfile contain ?

1899