I have a input file with length having 10k approx record and copy book having very long record lenght approx 1 lac. Actually occur is applied in copy book and based on that lenght of record is calculated.
Now how will I access Input file with that copy book, while describing FD if I m writing copy book name it gives error that lenght of copybook is greater than maximum length.
Even though the copybook mentioned was provided as file layout, the actual file layout was different. It contained multiple records for a subscriber and the whole data needed to be processed in this format.
Thus used logic to read all records related to a subscriber and formated the input in given format by using driver program to read the file and combine related records in the given format and then used the formatted input for processing.