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
using dfu, user will be able to ___________ from physical file?
what is the length of a variable in rpg?
what is the purpose of data structure?
Difference between NOPASS & OMIT?
What is program status data structure(psds) in as400?
what does dfu program you to do on a record?
what is the favicon.ico request that my site receives now and then?
what is a logical file?
how can database records be read without lock ?
Using %check we are checking monika in mona what is output? What is %SCAN?
what is the difference between *like and *namvar ?
what is the purpose of ovrdta (override data) keyword?
what is the maximum number of parameters allowed in rpg?
what are the various types of device files?
what are the two record formats a subfile contain ?