I'm in a situation where it would be helpful to use the same copybook for two different files in an EZT program. I know in COBOL you can use OF to specify which file you would like to get and/or set fields for (i.e. VAR1 OF INFILE). Does Easytrieve have this capability, or do I need to manually define fields with unique names within the program?
Tried using syntax I thought existed where I could add a character to the end to seperate, but tit looks like I'm using that incorrectly.
FILE INFILE
%COPYBOOK 1 I.
FILE OUTFILE
%COPYBOOK 1 O.
A colon to refer to filename:fieldname should work.