Fellow Monks,

The need has arisen for me to have a method of converting COMP-3 packed zoned EBCDIC fields to ASCII fields. I have written some tests with Convert::EBCDIC and found that it works for translating EBCDIC to ASCII

However, converting an EBCDIC field to ASCII, will not take care of the decoding of the fields. I'm wanting to learn this and not buy some product that does the conversion, mainly because those are expensive ;)

Does anyone have any good information about how to decode a COMP-3 packed/zoned field? i.e. an explanation of how comp-3 packed/zoned is performed when putting it into that format, so that I can simply reverse the process and then convert the data to ASCII via the module listed above.

I have googled this a bit but since the technology is pretty much abandoned in modern day teaching and tech(with the exception of legacy mainframes) I am having trouble finding good information. Even a book would be good at this point...

Thanks monks,

Grygonos

In reply to EBCDIC & COMP-3 *shriek* by Grygonos

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.