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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

for_yanCommented:
So what is your question ?
0
CEHJCommented:
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
gchen91789Author Commented:
My question is: when the record break into two or three lines, how can i handle it?

Thanks,
0
Python 3 Fundamentals

This course will teach participants about installing and configuring Python, syntax, importing, statements, types, strings, booleans, files, lists, tuples, comprehensions, functions, and classes.

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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java

From novice to tech pro — start learning today.