Trouble retrieving data from AS400 files

I am currently trying to retrieve data from an AS400 table, i have succeeded with this many times before, however the only difference now is that i am trying to access JDEdwards files (and some of these to work), however for some files i have been able to retrieve some data (from the number fields) but other fields (string fields) in the files are being retrieve as jargon.
Data should be as follows:
However what is being retrieved is

Also the field types are not being retrieved correctly, all number fields seem to work fine in the files however the string fields are having problems, the actual field types are being change for example the following is a list of what is being converted.

10   Alpha      ->  String 20
5, 0 Packed    -> Number
10   Alpha     ->  String 20
1     Alpha     ->  String 2
10   Alpha     ->  String 20
1     Alpha     ->  String 2

where as the files that are working correctly seemd to have the same field types, what would be causing this to happen.

Who is Participating?
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.

This may be helpful

What is the underlying database?

I notice that what you listed as being retrieved is a 20 character field, hence the conversion to string(20).  Sounds like a driver issue to me.  My guess is that you're connecting to DB2 on the AS/400 and your driver isn't translating the binary alpha characters from their raw form into ascii text.

If you're using an ODBC connection with Client Access then edit the ODBC connection and check the "Translation" tab - I believe there's an option to "convert binary CCSID 65535 to text".  Check this option and see if that solves the problem.  If you're using another driver look for a similar option.


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
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
Crystal Reports

From novice to tech pro — start learning today.

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.