Trouble retrieving data from AS400 files

Posted on 2004-10-28
Last Modified: 2008-03-06
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.

Question by:jdwan
    LVL 100

    Expert Comment

    This may be helpful

    What is the underlying database?

    LVL 42

    Accepted Solution

    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.


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
    There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
    Need more eyes on your posted question? Go ahead and follow the quick steps in this video to learn how to Request Attention to your question. *Log into your Experts Exchange account *Find the question you want to Request Attention for *Go to the e…
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…

    846 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now