I need to know the record length of a record in variable record length file when read through cobol program. There are multiple record layouts for this file and by mistake some of the records are written with wrong record length causing length error when accessed from front end. I need to fetch those records and rewrite them with correct layout. But how do I find those records.
The key of the file is
Case-sub s9(3) comp-3.
Some of the records having case-sub x'053c' are written with wrong record length and I need to correct them.