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 » problem when interpreting signed packed decimal of 18 length

Post new topic  Reply to topic
 problem when interpreting signed packed decimal of 18 length « View previous topic :: View next topic » 
Author Message
fdarbot
PostPosted: Thu Feb 26, 2004 1:52 am    Post subject: problem when interpreting signed packed decimal of 18 length Reply with quote

Newbie

Joined: 26 Feb 2004
Posts: 1
Location: france

Hi,

I have a problem when interpreting a signed packed decimal of 18 length:

S9(1 COMP -3

(WMQI 2.1 OS/390)

my CWF options are:
Physical Type : packed decimal
Length Count : 10
Length Units : Bytes
Signed : Yes
Sign Orientation : N/A
Byte Alignment : 1 Byte
String Justification : N/A
Padding Character : Disabled
Skip Count : 0
Encoding Null : NULLLogicalValue
Encoding Null Value: 0

when the input data is X'123456789012345678C'

the MRM trace show 1.23456789012345 E+17

and when i put this data in a char data it becomes :
123456789012345000

i loose the 3 last numbers

I supose this is a limitation of 14 number after the point.

How can i do to have my 3 last numbers?
Back to top
View user's profile Send private message
wooda
PostPosted: Thu Feb 26, 2004 3:20 am    Post subject: Reply with quote

Master

Joined: 21 Nov 2003
Posts: 265
Location: UK

Hi -

You tell us the Physical type is packed decimal.
What logical type did you use ?

Float or Decimal ?

I assume it was float by the result that you got.
Try using a logical type of decimal.

This will effect how WMQI stores the number internaly.

Floats can contain larger numbers but decimals store more precision.
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 » problem when interpreting signed packed decimal of 18 length
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.