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


Please Help Members By Posting Answers For Below Questions

describe the difference between the dowxx and douxx operations?

1180


what are dds required for subfile?

587


Explain this error: "all record formats for externally-described file abcd ignored or dropped due to error; file ignored."?

756


what is a join logical file?

756


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

612






why is the declare cursor statement is used for?

632


How do you check object lock

372


how can I give more performance to some selected pages?

615


what is elastic and non elastic subrile?

563


What is diff between EVAL & MOVE?

973


different type of cursor?

640


how you will know whether you are in sfldrop or sflfold mode?

631


how to read database records without locking them?

1143


What Is The Object Type Of Pf, Lf, Printer File & Display File?

705


why is as/400 called object oriented machine?

955