ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Optional Lines in MRM output

Post new topic  Reply to topic
 Optional Lines in MRM output « View previous topic :: View next topic » 
Author Message
madi
PostPosted: Tue Jan 13, 2009 10:11 am    Post subject: Optional Lines in MRM output Reply with quote

Chevalier

Joined: 17 Jan 2006
Posts: 475

Hi All

I am trying to create an MRM message that is a tagged delimited message on the outer level and fixed length within each line

i have multiple lines within the data some of which are optional. I have set the min occurs to 0 and max to 25 or something for those types.

But they still end up as empty lines in the output message. I look at the trace before the output and MRM tree doesnt show these fields, so when its writing out the message its creating these fields.

i think its a property in the Msgdef file that I missed.

can anyone help??

Thanks
madi
_________________
IBM Certified Solutions Developer - WMB 6.0
Back to top
View user's profile Send private message
madi
PostPosted: Tue Jan 13, 2009 11:02 am    Post subject: Reply with quote

Chevalier

Joined: 17 Jan 2006
Posts: 475

Well, after changing the model of the MRM, I could get rid of the empty lines.
I was using group indicator and terminator to define taged fixed messages, now i changed to tagged fixed format.

here's the model

Code:


Root -- Tagged fixed Length with length of tag as 2 with group terminator <CR><LF>
       Line1 -- Tag = '10' ; Repeating delimiter = <CR><LF>
                Field1 -- fixed length; length = 5..
                Field2 -- .......
                ....
       Line2 -- Tag = '11' ; Repeating delimiter = <CR><LF>
                Field1 -- fixed length; length = 5..
                Field2 -- .......
                ....
        ...
        ...


Now my question is: How to tell MRM that after everyline i need a <CR><LF>; the above definition isn't working

anyone?

--madi
_________________
IBM Certified Solutions Developer - WMB 6.0
Back to top
View user's profile Send private message
kimbert
PostPosted: Tue Jan 13, 2009 1:29 pm    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Some simple rules when using TDS:
1. Use Group Indicators and Group Terminators to model fixed text in the message
2. If the aim is to guide the parser, use a Tag, not a Group Indicator .

You have discovered 2. for yourself. Now you need to apply 1.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Optional Lines in MRM output
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.