I was hoping to spare you the gory details, but...
This is coming from a proprietary closed platform called "Flex/OS" by IBM which is a stripped down OS/2 for retail registers running on x86 pc's. I have no choice in how the data is packed. I believe the application treats everything as strings or numbers. I cracked IBM's infamous "packed decimal compressed transaction logs" with an elaborate perl program (which works better than several other expensive commercial programs we have seen). All the data fields in this file are either ascii or packed decimal. Perhaps they chose wrong in deciding to pack a negative number, I was just hoping to find someway to unpack it correctly. Sadly, there are other fields which are correctly unpacked as "d1".
Kyle

In reply to Re: Re: Re: Re: H2 pack/unpack not working for negative numbers by Anonymous Monk
in thread H2 pack/unpack not working for negative numbers by Qckng

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.