i had a java program to read text data file from mainframe and output to different files base on the record type.
The data file contains header record, trailer record and 15 different record types. Each record had different record lenth.
Few weeks ago, one of the record type was added 18 packed decimal fields at end of the record.
If any of the packed decimal field had '0D' in the last byte, it break the record into two - three lines.