|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Tagged Delimited |
« View previous topic :: View next topic » |
Author |
Message
|
vedbhat |
Posted: Thu Jan 08, 2004 10:51 pm Post subject: Tagged Delimited |
|
|
 Disciple
Joined: 19 Mar 2002 Posts: 186 Location: Singapore
|
Hi,
I am having problem defining the MRM for my output message. Incoming message also uses MRM.
Say, there are 4 elements in the output message. All the fields need to delimited by a semicolon. Out of the 4 fields, except last one all the other elements are fixed length.
Length of last field is obtained from Input message. Last field is also repeating and count of this repeat is also obtained from input message.
I can get all the fields parsed to the output message with delimited. I dont have any problem in repeating. The problem is getting the delimiter for the last field.
The structure defined for the output message.
TYPE: TYP_XXX (All Elements Delimited with Semicolon)
---------------Element: eTYPE_DETAILS (
----------------------------------eFIELD1
----------------------------------eFIELD2
----------------------------------eFIELD3
----------------------------------eFIELD4 (Repeat, 0, 999999, Repeating Elements Delimited with Semicolon) - Length and repeat count obtained from input message.
---------------Element: eFIELD5 (Used as dummy field to generate the delimiter dor the last field
Appreciate if someone can suggest how to get the delimiter for the last field. _________________ IBM Certified Solutions Expert - MQSeries Workflow
IBM Certified Specialist - MQSeries |
|
Back to top |
|
 |
kimbert |
Posted: Fri Jan 09, 2004 2:07 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
Your best bet is to define a group terminator (semicolon) for the outermost complex type. |
|
Back to top |
|
 |
wooda |
Posted: Thu Jan 15, 2004 4:03 am Post subject: |
|
|
 Master
Joined: 21 Nov 2003 Posts: 265 Location: UK
|
What exactly do you mean when you say you having a problem getting the delimeter for the last field ?
Please give an example of what you want the output message to look like and also what you get with you model. |
|
Back to top |
|
 |
Nyusser |
Posted: Fri Jan 16, 2004 2:07 am Post subject: |
|
|
Apprentice
Joined: 02 Jul 2002 Posts: 48
|
You could add the delimiter to the last field with ESQL. |
|
Back to top |
|
 |
wooda |
Posted: Fri Jan 16, 2004 2:24 am Post subject: |
|
|
 Master
Joined: 21 Nov 2003 Posts: 265 Location: UK
|
No you don't need to use ESQL. If all you want to do is ensure you get a delimeter after the last element then kimbert is correct use a group terminator. |
|
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
|
|
|
|