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 / swetha p rao

Using Extmbr key word in F Spec you can access the members
of file in RPG4.

Is This Answer Correct ?    9 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what opcode will be used to test the zone of a character field?

1099


Write a CL program which will run a batch job at 1 am every night

677


what is the function of cpysplf command?

988


records can be read/update/deleted with which file?

641


What is the difference between crtdupobj and copyf?

689






how can I give more performance to some selected pages?

617


can you have multiple key lists for a single file ?

1001


1)In a pf if we delete a record then how to insert a new record at the same place in that pf?? any logic or code? 2)A batch job is taking a lot of time to run,found that it is going into loop and wrapping up so how to skip that loop and process the job without changing the code? 3)In which scenario C D I R comes and C D G F comes in a job? 4)If a job came to error while processing a file how we can know at which record the error hit and how to skip that record and process other records without changing program code?

3071


how can database records be read without lock ?

1223


what is the purpose of the indara keyword?

1135


what are the different commands used in rlu ?

1466


what is full form for dds?

748


can a single screen format occupy a screen area above and below a subfile format ?

1030


how many levels are there in a physical file?

1012


What is dynslt?

790