× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hi all - 

A quick question about a flat file built on a S/390, that I am trying to
process on a Windows box using JTOpen.

I have access to the file only though an FTP applet that our HQ
maintains, and I pulled the file down as text and as binary.  When I'm
processing the file, I have no trouble with the text fields, but there
are some packed decimal fields that are not coming across.

I also was able to parse the binary file when I set the encoding to
"IBM1047", but had the same problem with the packed fileds.

I tried the BinaryConverter class, and the method to convert to Hex
string for the byte array, and for the text and binary files, it returns
the following sting for a 4 byte number : "0000000C", which I understand
to be 12, but I know the number should be 1.

So my question is this:  Can I parse a packed-decimal field in a file
that has been translated to ASCII or Unicode?  Thanks for any help.

Bob


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.