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 / 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 |
Post New Answer View All Answers
describe the difference between the dowxx and douxx operations?
what are dds required for subfile?
Explain this error: "all record formats for externally-described file abcd ignored or dropped due to error; file ignored."?
what is a join logical file?
is there any way I can ease my rpg controls on numeric input fields? How about an input date field?
why is the declare cursor statement is used for?
How do you check object lock
how can I give more performance to some selected pages?
what is elastic and non elastic subrile?
What is diff between EVAL & MOVE?
different type of cursor?
how you will know whether you are in sfldrop or sflfold mode?
how to read database records without locking them?
What Is The Object Type Of Pf, Lf, Printer File & Display File?
why is as/400 called object oriented machine?