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
what is *inzsr used for?
Using %check we are checking monika in mona what is output? What is %SCAN?
how many specifications are there in rpg/400? What are they?
can a indexed file be accessed in arrival sequence in rpg program?
what are members?
why is as/400 called object oriented machine?
What is a query can be displayed without saving it?
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...
what does defn do?
how can a message from a message file appear as a constant on the screen?
what is the use of dspatr(mdt) keyword?
what is a non-join logical file?
what does vldcmdkey means?
can we define multi-dimensional arrays in rpg ?
What is data structure in as400? What is the use of data structure?