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
how to define to define a hidden filed in dspf ?
which type of object is used in db2/400?
the maximum number of subfiles that can be active for a single file is ____ .
Difference Between Source Physical File & Physical File?
what is full form for dds?
which cl command can be used at program execution to redirect the file named in an rpg program?
define what a data queue is along with a brief example of what it may be used for?
how do you specify page overflow indicator for printer files in rpg?
How to reverse a string using RPG?
when should I use method get, and when should I use method post in my cgis?
what is the maximum number of parameters allowed in rpg?
What is difference between rename and prefix?
how can u check no of records in a file?
Difference Between Interactive & Batch Job?
in which specification the report layout can be defined?