http://www.perlmonks.org?node_id=696949


in reply to Re: EBCDIC and COBOL records
in thread EBCDIC and COBOL records

Here comes a set of files : definition1.txt comes with sample1.txt, definition2.txt comes with sample2.txt That's very kind of you if you can help :-)

Replies are listed 'Best First'.
Re^3: EBCDIC and COBOL records
by Aim9b (Monk) on Jul 14, 2008 at 12:14 UTC
    plegall, I'm sorry, but all I can do is rule OUT some things...

    First, Even though the name in your Data Division implies otherwise, your sample data is deffinitely not ASCII, it truely is EBCDIC.

    Second, the 9(8) Comp fields do not look like anything I've seen before in a COMP field. The comp's I'm familiar with contain only 0-9, with one C/D for the + or - Sign. (ie. like the folowing, for $123.45...
    0024 Zone portion
    0135 numeric portion

    or in the case of a signed value of -3697...
    006D
    0397

    So, my questions would be, what sort of data is this, and are you sure these are COMP fields? Sorry, I couldn't be more help. Good Luck. Aim9b.