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

What are the different opcodes used for file operation on a subfile in a rpg pgm?

1734


what would be the effect on the field where reverse image, underline and highlight display attributes were active?

1529


Difference Between Call & Sbmjob?

1226


is it there an easy way to determine if an html section is available to issue a wrtsection upon?

921


Can any one explain the basic things about RLU and Printer Files and their Definitions for both and why are they used,i'm a newbee so please help me out

3416


what are different record spacing keywords in rlu ?

1855


1. There is a file called Month. Month has 12 members called Jan, Feb, ..., Dec. How to design a rpg code which can access any member and show its content. (User can ask for any member when required)?

959


when do you use f-spec. Continuation line ?

1599


Difference Between Ca & Cf?

1040


maximum number of subfiles that can be active for a single file is?

1616


what is join logical file?

1777


difference between sflrcdnbr and sflnxtchg?

1121


what is the function of cpysplf command?

1591


what is the purpose of overrides?

1650


If I want to execute Sftp commands(LS & GET) stored in Physical file from CL program automatically...Can u Plz tell me how can I do this?...How the script will look?? THANX FOR NY HELP...

2707