|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
TDS Signed Packed Decimals |
« View previous topic :: View next topic » |
Author |
Message
|
sido |
Posted: Mon Feb 02, 2004 4:17 pm Post subject: TDS Signed Packed Decimals |
|
|
Novice
Joined: 02 Feb 2004 Posts: 23
|
I am trying to have an Input TDS Message Set with Choice Type to determine which of 4 possible message types come in. Now, under each, I have to declare Signed Numbers that correspond to PIC S9(n) OR PIC S9(n) COMP-3. The sign comes appended to the last number of the Integer. In the TDS Tab, I can see the Sign Setting possible but not really the Packed Decimal Declaration. From what I see in the TDS tab, I need to know if there is a way of doing the following:
1) Telling the Broker that the number in question is a Packed Decimal
2) Having the option of saying the sign would be part of the last digit -
(I know this is possible in the CWF format) |
|
Back to top |
|
 |
wooda |
Posted: Tue Feb 03, 2004 1:28 am Post subject: |
|
|
 Master
Joined: 21 Nov 2003 Posts: 265 Location: UK
|
In TDS you cannot model packed decimal nor can you model a sign included in the last digit.
TDS is a character format. All numerics are expected to be input in character form.
As you rightly say both these functions are available in CWF.
Is there a reason why CWF is not appropriate for your model ? |
|
Back to top |
|
 |
wooda |
Posted: Tue Feb 03, 2004 1:30 am Post subject: |
|
|
 Master
Joined: 21 Nov 2003 Posts: 265 Location: UK
|
btw. CWF performs better than than TDS. And therefore is the better option if your model can be modelled using CWF. |
|
Back to top |
|
 |
sido |
Posted: Tue Feb 03, 2004 10:01 am Post subject: |
|
|
Novice
Joined: 02 Feb 2004 Posts: 23
|
The reasons for using TDS are:
1) We have 4 types of messages coming into ONE queue
2) The message lengths are never the same as there are a lot of optional elements
3) We didnt want to have to parse the Message using a field in the Application Header.
Using TDS, I have defined a Compund Message Type 'Choice' which has my four possible structures under it. Each of these messages has a 1-byte Tag preceding the data which we use to determine which of the 4 possible messages it is. We are having the Host prefix this 1-byte to the data it was sending us earlier. I knew that the Choice Type was possible in CWF but I wanted to take advantage of the tag options in TDS. Furthermore, I was told that CWF has performance issues! |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|