|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Beginner question on csv message set |
« View previous topic :: View next topic » |
Author |
Message
|
KIT_INC |
Posted: Fri Apr 11, 2008 7:22 am Post subject: Beginner question on csv message set |
|
|
Knight
Joined: 25 Aug 2006 Posts: 589
|
I am runng WMB 61 on WINXP
I have a very simple message containing 3 elements
NAME , ADDRESS, and ACCOUNT
the sample message is
Tom;123 mystreet;123456;
I defined a message customer with 3 elements name , address and account all of Type String
In mesageset.mset under Tagges/Delimited String Formats/text1
I have delimiter';' and Suppress Absent Element Delimiter 'End of Type'
In properties Hierarchy of all 3 elemets under text1/local element , they all have physical type Text and length 0, length unit characters
The result of parsing shows (using debug)
Message
Properties
MQMD
MRM
NAME Tom
ADDRESS 123 mystreet
ACCOUNT 123456;
The ';' is picked up as part of the ACCOUNT
Is this normal ? If not, please help me on what I missed ? |
|
Back to top |
|
 |
kimbert |
Posted: Fri Apr 11, 2008 7:49 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
In the TDS format, the delimiter separates the members of a complex type or group. It is not a terminator.
That final ; is a terminator, so you need to set the Group Terminator on the complex type to ; |
|
Back to top |
|
 |
KIT_INC |
Posted: Fri Apr 11, 2008 8:13 am Post subject: |
|
|
Knight
Joined: 25 Aug 2006 Posts: 589
|
|
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
|
|
|
|