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


Please Help Members By Posting Answers For Below Questions

how do you specify the number of records to roll in a subfile ?

1262


How do I remove a flag or check no. or name when a user opens too many sessions?

1779


In AS/400 projects in Companies whats the meaning of production support team.what production support involves.also what work does development,maintenance involve what are the other teams or processes that are available for as400 project.

8537


If i change any file through application after entering data , how to check which file is updated through applications . For call stack we takes esc 3 then we chose 11..But What is answer of below qtn..?

1485


To Add A File To The 'file Selection' Option Of A Query, The Function Key To Be Pressed Is?

800






what is sflrolval?

657


what are dds required for subfile?

588


what is overlay?

687


what is match field indicator?

1033


what are the different commands used in rlu ?

1466


What is RETURN CURSER LOCATION in subfile?

1075


how would you design the process for a nightly, high volume check producing process that needs to select only records that are flagged to be processed?

951


what is the function of crtdupobj command?

1166


what is the command to know key fields of file?

626


what is a program described file in rpg?

1058