why isn't the ebcdic field converting t...

  • bootheel

    bootheel - 2010-02-19

    Hi, I downloaded an ebcdic file to my pc. its ebcdic binary cp 37 most likely.
    i hoped the f0f1f2 format of hex data when browsing the file using a cobol
    copybook and a field equal cobol pic x(3) format; would display as 012.
    instead it was ascii graphic symbols.
    however the comp-3 numeric field displayed correctly in the browse file.
    Its just the CHAR columns that have an isssue.
    Any ideas?

  • Bruce Martin

    Bruce Martin - 2010-02-19

    I can think of 2 reasons for this
    1) Make sure you have cp037 specified in the font field Record Layout
    definition (at the bottom of the
    record Layout screen, there is a Extra Tab, Click on it, and there is a
    Font field).

    see http://record-editor.cvs.sourceforge.net/viewvc/*checkout*/record-

    Also in the sample database there are a number of DTAR* copybooks, these are
    all mainframe

    2) Problem with Java installation, in specifically charset.jar. In java the
    mainframe character set encodings
    are in a File charset.jar. If this file is missing corrupted, Java will work
    normally as long as you
    do not want to display mainframe characters (or Thai etc). Sun also describe
    as an optional file so Some companies do not install it as part of Java.

    Normally you can just copy the charset.jar from another java installation, in
    it should be the same java version but charset.jar does not change much so
    most recent
    versions will do. Alternatively a full Java install should work.

    Here is a listing of my java lib directory under windows:

    Volume in drive C has no label.
    Volume Serial Number is B660-47A4

    Directory of C:\Program Files\Java\jre1.6.0_03\lib

    09/25/2007 02:05 AM 6,555,645 charsets.jar
    09/25/2007 02:06 AM 2,595,874 deploy.jar
    09/25/2007 02:05 AM 649,305 javaws.jar
    06/05/2008 10:10 PM 88,256 jce.jar
    09/25/2007 02:04 AM 556,617 jsse.jar
    09/24/2007 11:36 PM 382 management-agent.jar
    09/25/2007 02:05 AM 957,988 plugin.jar
    09/25/2007 12:12 AM 1,071,615 resources.jar
    09/25/2007 02:04 AM 41,336,268 rt.jar
    9 File(s) 53,811,950 bytes
    0 Dir(s) 10,498,904,064 bytes free

    If the above possible solution do not work, let me know + provide details on
    Operating System / java version etc
    and I will dig a bit deeper



Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks