Author |
Message
|
Hari |
Posted: Thu Apr 12, 2007 10:45 pm Post subject: TDS message set |
|
|
 Centurion
Joined: 21 Nov 2002 Posts: 117 Location: USA
|
now this is really simple, but these days i have gone a bit rusty on my broker fundamentals...
Env: WBIMB 5.0, HP-UX
I have this input file which looks like something:
abc*cnn*bbc*msnbc*fox[b]<LF>[/b]
wer*der*dee*jkl*weret[b]<LF>[/b]
I had a TDS message set defined something like:
[b]xyz.mxsd
Messages
<Message Name>
Comp_Element [/b]
Repeating Element Delimiter <LF>
Min Occurs 1
Max Occurs -1
[b]**Anonymous**[/b]
DES ---- All Elements Delimited
Delimiter *
Now the output message follows the same TDS message set (with a few values altered)....
Now the problem.....
the output messages looks something like this, the last line does not have a <LF> character.....something like this
abc*cnn*bbc*msnbc*fox[b]<LF>[/b]
wer*der*dee*jkl*weret[b][/b]
Thanks in advance... |
|
Back to top |
|
 |
Mensch |
Posted: Fri Apr 13, 2007 1:09 am Post subject: |
|
|
Disciple
Joined: 17 Jul 2005 Posts: 166
|
Here is the solution
Follow these steps while creating your message set
1) Create One complex type Comp1
with Properties
Data element Separation: All elements delimited
Delimeter: <CR><LF>
2) Create one more complex type comp2
with properties
Data element Separation: All elements delimited
Delimeter: *
3) Add local elements (which are separated by *) inside type comp2
4)Add one local element of type comp2 inside type comp1
5)add message and make it of type comp1 _________________ Thanks and Regards ,
Mensch |
|
Back to top |
|
 |
Mensch |
Posted: Fri Apr 13, 2007 1:27 am Post subject: |
|
|
Disciple
Joined: 17 Jul 2005 Posts: 166
|
OR
You can look at the CSV example in Samples Gallery/Technology samples  _________________ Thanks and Regards ,
Mensch |
|
Back to top |
|
 |
kimbert |
Posted: Fri Apr 13, 2007 2:59 pm Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
Quote: |
the last line does not have a <LF> character |
Add a Group Terminator to the outermost complex type. |
|
Back to top |
|
 |
rohit |
Posted: Wed Apr 18, 2007 4:27 am Post subject: |
|
|
 Apprentice
Joined: 05 Jul 2005 Posts: 40
|
Mensch wrote:
Quote: |
You can look at the CSV example in Samples Gallery/Technology samples |
Can you please tell how to go to gallery,coz i am searching for samples for message transformation using MRM parser
Cheers,
Rohit _________________ IBM Certified System Administrator - WebSphere MQ V6.0
------------------------------------
Don't think that you can!...But,Know that you can!.. |
|
Back to top |
|
 |
Mensch |
Posted: Wed Apr 18, 2007 5:47 pm Post subject: |
|
|
Disciple
Joined: 17 Jul 2005 Posts: 166
|
Quote: |
--------------------------------------------------------------------------------
Mensch wrote:
Quote:
You can look at the CSV example in Samples Gallery/Technology samples
Can you please tell how to go to gallery,coz i am searching for samples for message transformation using MRM parser
Cheers,
Rohit
|
Open toolkit ....
Help-> Samples Gallery  _________________ Thanks and Regards ,
Mensch |
|
Back to top |
|
 |
|