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 a query can be run in which mode?

868


Why we are not able to perform insert delete and update operation in Join logical file?

941


which cl command can be used at program execution to redirect the file named in an rpg program?

718


explain the purpose of keep and assume keywords?

1073


what is the sequence when using cursor?

611






. How to know why the OPM job is in MSGWAIT state?..WHAT COULD BE THE REASON FOR it?

7049


describe the difference between the dowxx and douxx operations?

1195


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

709


what is the command to know key fields of file?

627


the output from my cgi is correctly interpreted by ms internet explorer, whereas netscape navigator would display it as a plain text. What should I do to have also netscape interpreting the html output from my cgi?

570


What is the Difference between command attention key and command function key ?

800


how can a cgi check whether an ifs object is available?

646


how to develop some simple graphs (bar charts) using just html?

679


can error messages as a result of a comp, range or values keyword be overridden?

1149


what does opcode post do ?

1105