Author |
Message
|
djeripo |
Posted: Mon May 17, 2004 12:06 pm Post subject: TDS Decimal |
|
|
 Master
Joined: 25 Jan 2004 Posts: 225
|
I am trying to create a Decimal Element in TDS .
It throws up the following error while trying to check-in
'BIP1950E: Invalid value (-1) for property (Precision) on tab (TDS) in message repository resource (Element, AMT).
An error has been detected when creating or updating a message repository resource (Element, AMT). The value (-1), for property (Precision) on tab (TDS) is not valid.
Change the value and retry the operation. '
I am expecting a Decimal Data in my message something like,
123456.78
In TDS tab I gave
Length 8
Virtual Decimal Point 2
Am I missing something somewhere? |
|
Back to top |
|
 |
kirani |
Posted: Mon May 17, 2004 11:25 pm Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
What is your Data Element Separation property set to? _________________ 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 |
|
 |
wooda |
Posted: Tue May 18, 2004 2:13 am Post subject: |
|
|
 Master
Joined: 21 Nov 2003 Posts: 265 Location: UK
|
You can't have Virtual Decimal Point and Precision both set. I guess you must have "touched" precision even though it is still set to it's default it is complaining. This is a v2.1 control center bug I guess.
The answer ? Go to precision field and delete the value in there
(Currently set to All Significant Digits) leaving it completly blank.
Should be ok then
regards
Alex |
|
Back to top |
|
 |
djeripo |
Posted: Tue May 18, 2004 7:09 am Post subject: |
|
|
 Master
Joined: 25 Jan 2004 Posts: 225
|
Kiran , My Data Element Separation property is set to 'FixedLength'.
Thanks Alex,I could successfully check in after making precision field blank. I am just wondering what would be the significance of precision values 'All significant Digits' and 'Explicit Decimal Point' .Should the behaviour be normal despite making precision blank . |
|
Back to top |
|
 |
wooda |
Posted: Wed May 19, 2004 12:26 am Post subject: |
|
|
 Master
Joined: 21 Nov 2003 Posts: 265 Location: UK
|
If you are using Virtual Decimal Point then precision is meaningless.
This is why you can't have both set.
You have a have virtual decimal point to be inserted at the offset you specify in "Virtual Decimal Point" so this implies you don't have a real decimal point. the number will appear in the bitstream as an integer and the decimal point will not be written at all bit decimal digits will be written to the roight of the number. the VDP tells the parser where the virtual decimal point lies.
Precision is to control how much precision is written after a REAL decimal point.
Explicit Decimal Point means a REAL decimal point will be written even for a whole number with no decimal part.
All Significant Digits means exactly what it says. All the available significant digits will be written after the decimal point. trailing zero's after the DP will be removed.
And putting an integer in Precision will mean a fied number of decimal places will be written. |
|
Back to top |
|
 |
|