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 / ankush chaudhary

Hi Paul,
In order to ignore say first member of a file and use the
2nd member we can use IGNORE and INCLUDE keywords on the F
specs.
IGNORE is used in case we do not want to use a particular
member of a file.
INCLUDE helps in using a particular record format for the
file.
Hope this clarify your doubt.

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the function of crtdupobj command?

1161


how do you know that records are locked?

1162


What Does 'sr' In Columns 7-8 Of C Specs Mean?

1069


what is the use of sflend keyword?

983


what is a spool file?

676






WHAT IS FERERENTIAL INTRIGRITY ?

1112


what is a logical file?

1047


when do you use f-spec. Continuation line ?

981


what is the difference between normal upddta to pf and updating using dfu program?

769


What is file information data structure(infds) in as400?

973


what the purpose of ovrdta, ovrata keywords?

1182


which of the cl command can be used to determine which logical files are dependent on a specific file?

593


how to pick up the changed records every time in a subfile after the first change made ?

1020


what is overlay?

685


what is the purpose of dynslt keyword?

1039