|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Copybook - Signed Integers |
« View previous topic :: View next topic » |
Author |
Message
|
CHF |
Posted: Wed Sep 28, 2005 9:23 am Post subject: Copybook - Signed Integers |
|
|
 Master
Joined: 16 Dec 2003 Posts: 297
|
Hello All,
I am using WMQI 2.1 and mapping xml to copybook.
I have a Copybook field PIC S9(07)V9(2)
Can anyone pl tell the valid data for the copybook field...
When mapping do we have to specify sign and seperator also?
PIC S9(07)V9(2) -----> 0000000.00
-----> -1111111.22
Are the sample data valid? _________________ CHF  |
|
Back to top |
|
 |
EddieA |
Posted: Wed Sep 28, 2005 3:17 pm Post subject: |
|
|
 Jedi
Joined: 28 Jun 2001 Posts: 2453 Location: Los Angeles
|
Quote: |
Are the sample data valid? |
No. The "V" is an implied decimal point, so 56.78 would actually be stored as 000005678.
The "S" changes the the last character of the data. In EBCDIC, the hex values of the numbers are x'F0' - x'F9'. The sign bit changes them to x'C0' - x'C9' for positive numbers and x'D0' - x'D9' for negative. (I know there are other values as welll, but these are the recognised ones). So, for the above example, that would be, for a positive number, x'F0F0F0F0F0F5F6F7C8' and x'F0F0F0F0F0F5F6F7D8' for negative. And x'F0' - x'F9' is actually unsigned, but treated as positive.
Cheers, _________________ Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0 |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|