TomLiotta
7610 pts. | Nov 9 2009 7:48AM GMT
It’s not clear what you mean by “common key field parameters”. Do you mean that you want to use the same program variables to access all five files? If so, then, yes, you can. Why not?
If you mean that five files have different key structures and you want to access all five using a single key structure, then, no, you can’t. It doesn’t matter what language you use. You can’t do it in any language.
And an example won’t be very useful if the question isn’t clarified first. Also, an example will simply show five files being accessed with the same variables. It’ll be the same as an example with five sets of variables except there will only be one set instead of five.
Tom
WoodEngineer
2240 pts. | Nov 10 2009 5:15PM GMT
Mahesh11 - its generally a good practice to use different field names in your key list than the names of the field in the file being accessed. That way, there is no risk of a chain altering the contents of your key. It can save you from future headaches.
Cwc
3845 pts. | Nov 11 2009 2:38PM GMT
Regarding key lists, I hardly ever use them anymore, as they’re not necessary and seem nearly obsolete in free format RPG.
I’d rather have all the field names used for the key coded with the file operation itself, so that I don’t have scan through the rest of the program to find what field names the key list consists of.






