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 / samul
Sweta,
I think above scenario will clear what am trying to ask.
---------------------------
I have following scenario :-
a) One file says FILEA,has a three members
Members : Mem01 ,Mem02 ,Mem03
b) I want to use member Mem02 in my RPG400 program
(PGM01). (I have to use only RPG400 not RPGIV/RPGILE)
c) I don't want to use QCMDEXE,EXTMBR or OVRDBF in program
PGM01.
How can I do it....?
---------------------------
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
if we tried to move year part of *iso date into a field of length 3, what will happen ?
WHICH REPLY CODE IS USED BT sftp ? ... (e.g.226 is used by FTP IF FILE IS TRANSFERED)
when would you prefer logical file than opnqryf?
What is data structure in as400? What is the use of data structure?
how many files can be defined in f specs?
how to validate input values in display file ?
what is the disadvantage of using global variable?
Can level check error occur if we do chgpf?
what are the different types of arrays available in rpg ?
a multiple format logical file is also known as?
what is externally described file ?
what are the different opcodes available in rpg for database access ?
What is the maximum number of subfiles that can be specified in a display file?
What is the difference between iter and do? We know both are used to execute set of statements repeatedly, but what is the main difference?
can a indexed file be accessed in arrival sequence in rpg program?