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

Difference Between Skip Before & Space Before?

669


what is service program?

597


how do you pass parameters in cl?

1045


define the rcvf command?

984


To Add A File To The 'file Selection' Option Of A Query, The Function Key To Be Pressed Is?

792






how to read database records without locking them?

1128


what is a physical file?

1000


is there any way I can ease my rpg controls on numeric input fields? How about an input date field?

608


what is the sequence when using cursor?

603


What Is The Error If We Don't Get Login Screen?

673


What is the difference between physical file and logical file?

585


what is the necessary keyword for non-join logical file?

1165


how do you specify the number of records to roll in a subfile ?

1233


define what a data area is along with a brief example of what it may be used for?

958


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

2897