We help IT Professionals succeed at work.

Java read text and packed decimal records

gchen91789
gchen91789 asked
on
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.

Thanks,

Gary
Comment
Watch Question

Awarded 2011
Awarded 2011

Commented:
So what is your question ?
Top Expert 2016
Commented:

Author

Commented:
My question is: when the record break into two or three lines, how can i handle it?

Thanks,
Top Expert 2016

Commented:
Delete the linefeeds

Author

Commented:
The problem is the linefeed '0D' is part of the packed decimal field.
Top Expert 2016

Commented:
Please either:

a. *attach* a file containing a copy of an example field
b. post a complete binary dump of the field