Thank you for the response.
It's possible I've misunderstood you; if so, my apologies.
I'm still using our old HP3000, and I have access to the HP Cobol compiler.We haven't "migrated" and aren't intending to.
My problem is basically how to use the characteristics of an input file as HPFOPEN parameters to create an output file - such that the output file is essentially an exact replica of the input file (give or take some of the data). Without knowing anything about the input file until it is opened by the Cobol program.
[I'm using FFILEINFO and FLABELINFO to capture the characteristics of the input file, after I have opened it.]
I don't think I can substitute a macro for Cobol code, because I don't have the output file defined ... until just before I open it ... at run time.
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *