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 *inzsr used for?

1465


Using %check we are checking monika in mona what is output? What is %SCAN?

985


how many specifications are there in rpg/400? What are they?

1087


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

934


what are members?

603






why is as/400 called object oriented machine?

945


What is a query can be displayed without saving it?

673


The content of Physical file is as below: hfcftp wruquief SENDPASV 0 CDUP ASCII GET 01100901.CSV ramndk/ECP505.EC0110090 (REPLACE QUIT Thw above commands will get executed when we call STRTCPFTP from CL program.... Now if I want to use SFTP what can be the solution? plz reply in detail....Thank you for ny help... I m using RPG/ILERPG to download...

1909


what does defn do?

609


how can a message from a message file appear as a constant on the screen?

929


what is the use of dspatr(mdt) keyword?

1441


what is a non-join logical file?

970


what does vldcmdkey means?

814


can we define multi-dimensional arrays in rpg ?

929


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

602