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 / suresh kumar

1)create a logical file on the P.F while creating mentioned
the DataMember name in the crtpf 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 ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is sflrolval?

652


what is a program described file in rpg?

1056


where can you specify an indicator in lokup operation?

1161


what is a primary file?

1053


why is the declare cursor statement is used for?

632






what does the ovrdbf command do?

669


what is service program?

603


What is the difference between physical file and logical file?

597


how to validate input values in display file ?

671


what is scan and xlate?

1091


how do u compile rpgle program?

628


What is file access opcodes?

760


Can we debug the MSGW JOBS?

935


which are control break logic indicators?

639


what are the different types of variables available in cl?

1008