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
where will control be passed after the execution of the *pssr subroutine if the factor2 of the endsr is blank ?
what is logical file?
what is the version of os/400 that we have?
What is the as400 called now?
where can you specify an indicator in lokup operation?
what is sflpag and sflsiz ?
how many levels are there in a physical file?
. How to know why the OPM job is in MSGWAIT state?..WHAT COULD BE THE REASON FOR it?
what is the maximum number of parameters allowed in rpg?
how can you detect and handle a record lock situation?
How do you check object lock
what is rpg fixed logic cycle?
what is a primary file?
how can I give more performance to some selected pages?
What Is Default Data Type (if You Define Decimals '0') In Physical File?