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

where will control be passed after the execution of the *pssr subroutine if the factor2 of the endsr is blank ?

1844


what is logical file?

1039


what is the version of os/400 that we have?

1643


What is the as400 called now?

990


where can you specify an indicator in lokup operation?

1822


what is sflpag and sflsiz ?

3457


how many levels are there in a physical file?

1803


. How to know why the OPM job is in MSGWAIT state?..WHAT COULD BE THE REASON FOR it?

7957


what is the maximum number of parameters allowed in rpg?

1748


how can you detect and handle a record lock situation?

1995


How do you check object lock

837


what is rpg fixed logic cycle?

1214


what is a primary file?

1751


how can I give more performance to some selected pages?

1039


What Is Default Data Type (if You Define Decimals '0') In Physical File?

1860