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 » Precision of Decimal in CWF

Post new topic  Reply to topic
 Precision of Decimal in CWF « View previous topic :: View next topic » 
Author Message
n1ghtrain
PostPosted: Thu Nov 08, 2007 11:03 pm    Post subject: Precision of Decimal in CWF Reply with quote

Apprentice

Joined: 23 Mar 2006
Posts: 48
Location: Bangalore

I am facing a problem in modeling a decimal field

Source field : 123.456
Target expected : +00123.456

I have modeled the target field as decimal (CWF)
Physical Type : External Decimal
length count : 10
Length Units : Bytes
Signed :Yes
Sign Orientation : Leading Separate
Virtual Decimal Point : 0
String Justification : Right Justify
Padding Character : '0'

Output : +000000123

Fractional part is getting truncated. (If i give Virtual decimal point as 3, i can see the value as +000123456)

Help..!!
Back to top
View user's profile Send private message Yahoo Messenger
n1ghtrain
PostPosted: Thu Nov 08, 2007 11:24 pm    Post subject: Reply with quote

Apprentice

Joined: 23 Mar 2006
Posts: 48
Location: Bangalore

I have also tried to model it in TDS.
Sign Orientation : Leading
Postive : +
Negative : -

This works as expected for negatives but for postives the '+' won't appear
Back to top
View user's profile Send private message Yahoo Messenger
elvis_gn
PostPosted: Fri Nov 09, 2007 1:01 am    Post subject: Reply with quote

Padawan

Joined: 08 Oct 2004
Posts: 1905
Location: Dubai

Hi n1ghtrain,

I remember doing some decimal 'trial and error' some weeks back and found similar 'Virtual Decimal Point' problems, thats when I found 'simple restriction' (under types) and it helped me achieve length of decimal with restriction on number of fractions...

I'm not saying this has to be the way to go, but you could try combos of both, might just work for your requirement...

Regards.
Back to top
View user's profile Send private message Send e-mail
n1ghtrain
PostPosted: Fri Nov 09, 2007 3:40 am    Post subject: Reply with quote

Apprentice

Joined: 23 Mar 2006
Posts: 48
Location: Bangalore

Tried that .. No Luck ..
Back to top
View user's profile Send private message Yahoo Messenger
n1ghtrain
PostPosted: Sun Nov 11, 2007 7:50 pm    Post subject: Reply with quote

Apprentice

Joined: 23 Mar 2006
Posts: 48
Location: Bangalore

Hi All,

Still stuck with this..

(Only solution i could think of is to model this field as string and convert the decimal to the format i require.)

Any thoughts/Suggestions.?
Back to top
View user's profile Send private message Yahoo Messenger
Mensch
PostPosted: Mon Nov 12, 2007 2:04 am    Post subject: Reply with quote

Disciple

Joined: 17 Jul 2005
Posts: 166

Hi n1ghtrain,

I did the same thing when I was running out of time....
_________________
Thanks and Regards ,
Mensch
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 » Precision of Decimal in CWF
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.