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

Answers were Sorted based on User's Feedback



I had ruestion in one of the interview..... If 1 file has more than 1 member and i want to use the..

Answer / swetha p rao

Using Extmbr key word in F Spec you can access the members
of file in RPG4.

Is This Answer Correct ?    9 Yes 1 No

I had ruestion in one of the interview..... If 1 file has more than 1 member and i want to use the..

Answer / suresh kumar

1)create a logical file on the P.F while creating mentioned
the DataMember name in the crtpf command and use this
logical if u are not able to use ovrdbf in cl, Extmber in
RPG400/RPGIV and QCMDEXEC in RPG/RPGLE to Execute in OVRDBF.

ex: CRTLF FILE(FILEA) DTAMBRS((FILEA (MEM02)))

Is This Answer Correct ?    2 Yes 0 No

I had ruestion in one of the interview..... If 1 file has more than 1 member and i want to use the..

Answer / 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

I had ruestion in one of the interview..... If 1 file has more than 1 member and i want to use the..

Answer / samul

Sweta,

I think above scenario will clear what am trying to ask.
---------------------------
I have following scenario :-
a) One file says FILEA,has a three members
Members : Mem01 ,Mem02 ,Mem03
b) I want to use member Mem02 in my RPG400 program
(PGM01). (I have to use only RPG400 not RPGIV/RPGILE)

c) I don't want to use QCMDEXE,EXTMBR or OVRDBF in program
PGM01.

How can I do it....?

---------------------------

Is This Answer Correct ?    1 Yes 0 No

I had ruestion in one of the interview..... If 1 file has more than 1 member and i want to use the..

Answer / ravi

Small correction
1)create a logical file on the P.F.,while creating mention
the DataMember name in the CRTLF command and use this
logical if u are not able to use ovrdbf in cl, Extmber in
RPG400/RPGIV and QCMDEXEC in RPG/RPGLE to Execute in OVRDBF.

ex: CRTLF FILE(FILEA) DTAMBRS((FILEA (MEM02)))

Is This Answer Correct ?    1 Yes 0 No

I had ruestion in one of the interview..... If 1 file has more than 1 member and i want to use the..

Answer / shruti tayal

IGNORE/INCLUDE keywords are specific to all the record
formats of the member under consideration...so if used it
would ignore/include that specific record format not file
member.

Is This Answer Correct ?    2 Yes 1 No

I had ruestion in one of the interview..... If 1 file has more than 1 member and i want to use the..

Answer / samul

I stuck in this scenario.

Welcome to all of you for the suggestion

Is This Answer Correct ?    0 Yes 0 No

I had ruestion in one of the interview..... If 1 file has more than 1 member and i want to use the..

Answer / ankush chaudhary

Hi Paul,
In order to ignore say first member of a file and use the
2nd member we can use IGNORE and INCLUDE keywords on the F
specs.
IGNORE is used in case we do not want to use a particular
member of a file.
INCLUDE helps in using a particular record format for the
file.
Hope this clarify your doubt.

Is This Answer Correct ?    1 Yes 1 No

I had ruestion in one of the interview..... If 1 file has more than 1 member and i want to use the..

Answer / srinath

In F Spec use Keyword EXTMBR(Second member name)

Is This Answer Correct ?    1 Yes 1 No

I had ruestion in one of the interview..... If 1 file has more than 1 member and i want to use the..

Answer / swetha p rao

If we can use SQLRPGLE we can ccreate alias on the member.


I am not sure of other ways other than extmbr, Ovrdbf in
RPG400.may be you can tell me of there any other ways

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More IBM AS400 AllOther Interview Questions

Q.How can more than two program be executed in batch mode through SBMJOB in CL PGM but the condition is that program must be executed one by one?Please wtite the senario? 2. IS it possibe more then two programs can be executed in batch mode and HOw it will be executed in CL program ,please write the senario?

6 Answers   IBM,


what is the difference between clear and reset opcodes and open and close opcodes?please tell me in real time senario with example please? And What is the use of SFLNXTCHG?Where we can use this?

4 Answers   IBM,


what is lokup opcode?

1 Answers   IBM,


What is Data Area?

1 Answers  


what is the difference between seton lr and retrn?

1 Answers   IBM,


what are all the contents of subfile?

1 Answers   IBM,


what is the difference between packed decimal and zoned decimal?

1 Answers   IBM,


what is the command to rtrieve system date? options:1.rtvsysval 2.rtvjoba 3.rtvjobd 4.both a and b

5 Answers  


i have recently moved to hyd. i would like to know which is the best institue to learn AS400. are there any in ameerpet? thanks.

4 Answers  


how to pick up the changed records every time in a subfile after the first change made ?

1 Answers   IBM,


What is RETURN CURSER LOCATION in subfile?

0 Answers  


what is the command to know how many lf are related to a pf?

1 Answers   IBM,


Categories