Author |
Message
|
Testo |
Posted: Tue Nov 02, 2004 5:13 am Post subject: Extended decimal signed |
|
|
 Centurion
Joined: 26 Feb 2003 Posts: 120 Location: Italy - Milan
|
Hi there.
I have searched the forum to look for a similar problem but with no success.
I have an XML message in input with a signed numeric value, let's say '-1.345'. I want to assign this value, padded with '0' when necessary, to a CWF element, defined as follows:
DECIMAL
Extended Decimal
Length Count: 13
Signed: Yes
Sign Orientation: Included Leading
Virtual Decimal Point: 9
Right Justify
Padding Character: '0'
I would expect something like '-0013450000000' and instead of it I get '{0013450000000'
Where I am wrong?
Thanks in advance for any hint,
Andrea Tedone
IBM IT Specialist |
|
Back to top |
|
 |
Testo |
Posted: Tue Nov 02, 2004 8:19 am Post subject: I got it |
|
|
 Centurion
Joined: 26 Feb 2003 Posts: 120 Location: Italy - Milan
|
It was my mistake, reading better the documentation it's clear that I need to set Sign Orientation to Separate Leading.
Cheers,
Andrea |
|
Back to top |
|
 |
kirani |
Posted: Tue Nov 02, 2004 9:08 am Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
Also please make sure the receiving application can handle this type of data. _________________ Kiran
IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries
|
|
Back to top |
|
 |
bhaski |
Posted: Wed Oct 25, 2006 7:37 am Post subject: DO YOU HAVE ANSWER FOR YOUR QN |
|
|
 Voyager
Joined: 13 Sep 2006 Posts: 78 Location: USA
|
Hi anera
Pls let me know if you have answer for signed decimal conversion in MQ Broker 5 or 6?
Raj |
|
Back to top |
|
 |
bhaski |
Posted: Mon Dec 18, 2006 12:20 pm Post subject: Still you don't have solution? |
|
|
 Voyager
Joined: 13 Sep 2006 Posts: 78 Location: USA
|
Hi
I have done this with making some array and some conversion.
Love and Pray
Bhaski. |
|
Back to top |
|
 |
jefflowrey |
Posted: Mon Dec 18, 2006 4:15 pm Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
That's a good trick.
There are no arrays in ESQL.
Or did you do it in Java? _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
bhaski |
Posted: Thu Feb 15, 2007 1:19 pm Post subject: |
|
|
 Voyager
Joined: 13 Sep 2006 Posts: 78 Location: USA
|
We can create array in ESQL
like
SET Environment.Variables.POS_MORPH[] = LIST {ROW( '{' AS SYMBOL, '0' AS VALUE ),
ROW( 'A' AS SYMBOL, '1' AS VALUE),
ROW( 'B' AS SYMBOL, '2' AS VALUE ),
ROW( 'C' AS SYMBOL, '3' AS VALUE),
ROW( 'D' AS SYMBOL, '4' AS VALUE ),
ROW( 'E' AS SYMBOL, '5' AS VALUE),
ROW( 'F' AS SYMBOL, '6' AS VALUE ),
ROW( 'G' AS SYMBOL, '7' AS VALUE),
ROW( 'H' AS SYMBOL, '8' AS VALUE ),
ROW( 'I' AS SYMBOL, '9' AS VALUE )};
you can resolve that issue. Sorry for the delayed reply. |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Feb 15, 2007 6:14 pm Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
bhaski wrote: |
We can create array in ESQL |
That's not an array.
It's a tree. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
|