A FB file has n number of GDG generation names. And file name length is same(say 32 of length).
Records in file are like this:
XXXXXX.TEST.BSALLOC.ABSA.G0001V00 --> GDG file
XXXXXX.TEST.BSALLOC.ABSA.G0002V00
XXXXXX.TEST.BSALLOC.BBBB.G0001V00
XXXXXX.TEST.BSALLOC.BBBB.G0002V00
I need to read these GDG files and copy the contents of each and every file into new output file.
The thing is LRECL of these files are not same and so i have to keep the max possible LRECL of these files as LRECL of output file.
Anyone let me know how this can be done in COBOL.
Thanks
Priya