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 do I remove a flag or check no. or name when a user opens too many sessions?
how can I give more performance to some selected pages?
how to read database records without locking them?
what is the sequence when using cursor?
what is the maximum number of records you can specify in a display file?
What Does 'sr' In Columns 7-8 Of C Specs Mean?
How Many Specs Are There In Rpg & Which Are They?
define the purpose of the iter operation?
What are the mandatory keywords of sub file?
What is the Difference between command attention key and command function key ?
when would you use or not use this approach?
what are the three types of keywords associated with printer file ?
how to define global parameter in ile ?
is it possible to create a physical file without dds?
How to reverse the string in rpg