Author |
Message
|
lium |
Posted: Wed Jun 02, 2010 8:36 am Post subject: unable to generate plus sign + for decimal |
|
|
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 |
|
 |
lium |
Posted: Mon Jun 07, 2010 1:02 pm Post subject: |
|
|
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 |
|
 |
Gaya3 |
Posted: Mon Jun 07, 2010 1:24 pm Post subject: |
|
|
 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 |
|
 |
mqjeff |
Posted: Tue Jun 08, 2010 1:58 am Post subject: |
|
|
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 |
|
 |
lium |
Posted: Tue Jun 08, 2010 11:28 am Post subject: |
|
|
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 |
|
 |
mqjeff |
Posted: Tue Jun 08, 2010 11:42 am Post subject: |
|
|
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 |
|
 |
lium |
Posted: Tue Jun 08, 2010 11:45 am Post subject: |
|
|
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 |
|
 |
mqjeff |
Posted: Tue Jun 08, 2010 11:48 am Post subject: |
|
|
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 |
|
 |
Gaya3 |
Posted: Tue Jun 08, 2010 12:15 pm Post subject: |
|
|
 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 |
|
 |
lium |
Posted: Tue Jun 08, 2010 12:17 pm Post subject: |
|
|
Disciple
Joined: 17 Jul 2002 Posts: 184
|
Thanks, Gayathri
Seems like I have to go your way |
|
Back to top |
|
 |
|