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


Please Help Members By Posting Answers For Below Questions

if we tried to move year part of *iso date into a field of length 3, what will happen ?

652


WHICH REPLY CODE IS USED BT sftp ? ... (e.g.226 is used by FTP IF FILE IS TRANSFERED)

1718


when would you prefer logical file than opnqryf?

1367


What is data structure in as400? What is the use of data structure?

602


how many files can be defined in f specs?

1394






how to validate input values in display file ?

665


what is the disadvantage of using global variable?

688


Can level check error occur if we do chgpf?

771


what are the different types of arrays available in rpg ?

955


a multiple format logical file is also known as?

587


what is externally described file ?

935


what are the different opcodes available in rpg for database access ?

807


What is the maximum number of subfiles that can be specified in a display file?

1141


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?

549


can a indexed file be accessed in arrival sequence in rpg program?

934