Java read text and packed decimal records

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
gchen91789Asked:
Who is Participating?
 
CEHJConnect With a Mentor Commented:
0
 
for_yanCommented:
So what is your question ?
0
 
gchen91789Author Commented:
My question is: when the record break into two or three lines, how can i handle it?

Thanks,
0
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
CEHJCommented:
Delete the linefeeds
0
 
gchen91789Author Commented:
The problem is the linefeed '0D' is part of the packed decimal field.
0
 
CEHJCommented:
Please either:

a. *attach* a file containing a copy of an example field
b. post a complete binary dump of the field
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.