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 » unable to generate plus sign + for decimal

Post new topic  Reply to topic
 unable to generate plus sign + for decimal « View previous topic :: View next topic » 
Author Message
lium
PostPosted: Wed Jun 02, 2010 8:36 am    Post subject: unable to generate plus sign + for decimal Reply with quote

Disciple

Joined: 17 Jul 2002
Posts: 184

I have an decimal field in TDS message. I would like it to generate sign +/- when output.
For its Physical representation, it is set as following:

Field Identification:
Tag:
Data Patern:

Physical Type: Text
Length: 15
Length Units: Characters
Justification: Right Justify
Padding Character : '0'

Numeric representation:
Signed: Greyed with checked
Sign EBCDIC Customer Overpunched: Greyed with unchecked
Sign Orientation: Leading Separate
Positive Sign: +
Negative Sign: -

Virtual Decimal Point :2
Precision: greyed.

If the field is negative, the WMB can generate minus sign - without any problem. But if the field is positive, the WMB does not generate plus sign + which I would like to see in the output.

Anyone can help me on this?

Great Thanks,
Back to top
View user's profile Send private message
lium
PostPosted: Mon Jun 07, 2010 1:02 pm    Post subject: Reply with quote

Disciple

Joined: 17 Jul 2002
Posts: 184

Is this a very difficult issue or WMB does not provide us possibility to implement this?
Back to top
View user's profile Send private message
Gaya3
PostPosted: Mon Jun 07, 2010 1:24 pm    Post subject: Reply with quote

Jedi

Joined: 12 Sep 2006
Posts: 2493
Location: Boston, US

By default its always positive


create one more separate field and add it , or convert the double to string and append
_________________
Regards
Gayathri
-----------------------------------------------
Do Something Before you Die
Back to top
View user's profile Send private message
mqjeff
PostPosted: Tue Jun 08, 2010 1:58 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

I am reasonably certain you can configure the model to always output the sign for you, without doing the things that Gaya3 has suggested.

I don't recall the details at the moment, however. It might only be in CWF, or it might only be in certain flavors of TDS or something.
Back to top
View user's profile Send private message
lium
PostPosted: Tue Jun 08, 2010 11:28 am    Post subject: Reply with quote

Disciple

Joined: 17 Jul 2002
Posts: 184

Thanks mqjeff for the reply.

Let me know when you recall how to configure that. I tried a lot, but did not get through
Back to top
View user's profile Send private message
mqjeff
PostPosted: Tue Jun 08, 2010 11:42 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Hrm.

My memory is incorrect. The documentation says that the positive sign is not written when creating an output message. At least for TDS integer and decimal types.
Back to top
View user's profile Send private message
lium
PostPosted: Tue Jun 08, 2010 11:45 am    Post subject: Reply with quote

Disciple

Joined: 17 Jul 2002
Posts: 184

This is a bad news, but anyway, could you please paste the context of your document a little bit? Just want to take that as final confirmation and stop struggling on this.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Tue Jun 08, 2010 11:48 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

It's the section in the documentation on the TDS properties for integer types and the same comment in the section in the documentation on the tds properties of decimal types.
Back to top
View user's profile Send private message
Gaya3
PostPosted: Tue Jun 08, 2010 12:15 pm    Post subject: Reply with quote

Jedi

Joined: 12 Sep 2006
Posts: 2493
Location: Boston, US

I also faced the same scenario by default it wont represent + [positve] symbol.

you can opt the options that i have given to you.
_________________
Regards
Gayathri
-----------------------------------------------
Do Something Before you Die
Back to top
View user's profile Send private message
lium
PostPosted: Tue Jun 08, 2010 12:17 pm    Post subject: Reply with quote

Disciple

Joined: 17 Jul 2002
Posts: 184

Thanks, Gayathri

Seems like I have to go your way
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 » unable to generate plus sign + for decimal
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.