Hi All,
I'm trying to write a COBOL program which takes a file that contains Record Description/Layout, as one of its input and writes the data to the output file according to the layout specified in the input file.
I do not want to use the COPY statement to get the Record Description into my program because the input file is going to have different record description according to the user.
So my program is going to be generic, getting the layout and data to be written from the user.
Is there a way how I can dynamically read the input file and add those entries to the working storage or to the FD entry.
The program works fine with the use of COPY statement. But everytime the layout changes I'll have to recompile the source code.
I'm relatively new to COBOL and any help or suggestions would be appreciated.
Thank You,
Sriram