ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Copybook - Signed Integers

Post new topic  Reply to topic
 Copybook - Signed Integers « View previous topic :: View next topic » 
Author Message
CHF
PostPosted: Wed Sep 28, 2005 9:23 am    Post subject: Copybook - Signed Integers Reply with quote

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
View user's profile Send private message Send e-mail Yahoo Messenger
EddieA
PostPosted: Wed Sep 28, 2005 3:17 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Copybook - Signed Integers
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.