Skip to Content
avatar image
Former Member

Binary Packed Numbers

We are taking records off of a MQseries. I am using the JMS adapter to take messages off the series. The problem I am having is that in these messages there are Binary Packed Numbers, I believe these numbers are in the format that IBM uses to store number more efficiently. I was wondering if anyone else has had this situation, and what they did to fix it.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

5 Answers

  • Best Answer
    avatar image
    Former Member
    Jul 26, 2007 at 08:28 PM

    I am getting the same parse error as that guy in your second link, which means this probably isn't solvable using the basic XI tools...

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Paul !!

      Just an idea.. in SAP documentation about text encoding, says:

      "Check which other character sets are supported in the documentation for your Java runtime implementation"

      I've this data:

      CP 037 8-bit EBCDIC encoding form

      CP 500 8-bit EBCDIC encoding form

      UCS-2??

      useful link: http://www.hwacha.net/charsets

      Maybe there is another charset that works ok with BCD.

      Regards,

      Matias.

  • avatar image
    Former Member
    Jul 26, 2007 at 07:59 PM

    Hi Paul !

    Are you talking about Binary-coded decimals (BCD) ??

    Regards,

    Matias.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 26, 2007 at 08:07 PM

    yes i believe they are teh same thing, only these are the packed version, fitting two bytes worth of data into one. Here's a page about it that you can confirm it with http://academic.evergreen.edu/projects/biophysics/technotes/program/bcd.htm

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 27, 2007 at 01:25 PM

    Yeah, that's the same thing I thought of doing yesterday. I don't think there is a direct solution for this, but I have a lot of options to try out now, so I'll mark this thread as answered.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Paul !!

      Ok. Please if you have any interesting result, post it ! I want to know if it could be solved that way.

      Good luck,

      Regards,

      Matias.

  • avatar image
    Former Member
    Jul 27, 2007 at 06:42 PM

    actually, matias, do you know if there is a way to just send the data as bytes to the message mapping, or hex even?

    Add comment
    10|10000 characters needed characters exceeded