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 » MessageDefinition in MRM Domain TDS Format

Post new topic  Reply to topic
 MessageDefinition in MRM Domain TDS Format « View previous topic :: View next topic » 
Author Message
satya2481
PostPosted: Mon Jul 19, 2010 9:05 pm    Post subject: MessageDefinition in MRM Domain TDS Format Reply with quote

Disciple

Joined: 26 Apr 2007
Posts: 170
Location: Bengaluru

Hi All,
I am working on WMB6.1 and need to create below message definition in MRM domain TDS Format. First of all I would like to know whether we can create such a structure or not. If possible how I can go ahead.

Code:
HeaderStart (Tag to indicate Header line started)
   Field1, Field2, Field3
HeaderEnd (Tag to indicate Header line ends here)
LineStart  (Tag to indicate Line started) --> ( Occurence 0 to N)
   Field1, Field2, Field3
   SubLineStart (Tag to indicate Sub line started)--> ( Occurence 0 to N)
      Field1, Field2, Field3
   SubLineEnd (Tag to indicate Sub line ends here)
LineEnd (Tag to indicate Line ends here)


I am able to structure the message with Header and Line items but not understanding how to go ahead with SubLine element creation

Thank You
Regards
Satya
Back to top
View user's profile Send private message Send e-mail
satya2481
PostPosted: Mon Jul 19, 2010 9:07 pm    Post subject: Reply with quote

Disciple

Joined: 26 Apr 2007
Posts: 170
Location: Bengaluru

Note that Field1, 2 and 3 are all fixed length fields, created from CobolCopy text files.
Basically its clubbing of 3 CopyText files to create one complex structure and a mesage definition......
Back to top
View user's profile Send private message Send e-mail
flahunter
PostPosted: Mon Jul 19, 2010 9:18 pm    Post subject: Re: MessageDefinition in MRM Domain TDS Format Reply with quote

Acolyte

Joined: 30 Oct 2008
Posts: 62

Is there any CRLF in this message? Does ',' exist between Field? Please provide a sample to show the details.
Back to top
View user's profile Send private message
satya2481
PostPosted: Mon Jul 19, 2010 11:09 pm    Post subject: Reply with quote

Disciple

Joined: 26 Apr 2007
Posts: 170
Location: Bengaluru

Quote:
Is there any CRLF in this message? Does ',' exist between Field? Please provide a sample to show the details.


Yes we have CRLF between each lines as a record delimiter. Comma ',' does not exist between the fields. Sample example looks as below

Code:
HeaderStart
AAABBBCCC
HeaderEnd
LineStart
EEEFFFGGG
LineEnd
LineStart
EEEFFFGGG
SubLineStart
HHHIIIJJJ
SubLineEnd
LineEnd


Fields values I have given with 3 similar Alphabets. In above example 2 line records are present. First Line record not having any SubLine records.

Thanks for the reply
Back to top
View user's profile Send private message Send e-mail
kimbert
PostPosted: Mon Jul 19, 2010 11:46 pm    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Quote:
First of all I would like to know whether we can create such a structure or not.
Yes - it's definitely possible to parse your message.

Your sample looks a little strange. Is it really like this:
Code:
HeaderStart
AAABBBCCC<CR><LF>
HeaderEnd<CR><LF>
LineStart<CR><LF>
EEEFFFGGG<CR><LF>
LineEnd<CR><LF>
LineStart<CR><LF>
EEEFFFGGG<CR><LF>
SubLineStart<CR><LF>
HHHIIIJJJ<CR><LF>
SubLineEnd<CR><LF>
LineEnd<CR><LF>


or is it like this:
Code:
HeaderStartAAABBBCCCHeaderEnd<CR><LF>
LineStartEEEFFFGGGLineEnd<CR><LF>
LineStartEEEFFFGGGSubLineStartHHHIIIJJJSubLineEndLineEnd<CR><LF>


The difference is quite important, as it will affect the setup of the model.

I assume that you want subLine to be a child of Line in the message tree.
Back to top
View user's profile Send private message
satya2481
PostPosted: Tue Jul 20, 2010 12:06 am    Post subject: Reply with quote

Disciple

Joined: 26 Apr 2007
Posts: 170
Location: Bengaluru

My Sample message is like shown below. SubLine is a child element for Line record, you are correct.

Code:
HeaderStart<CR><LF>
AAABBBCCC<CR><LF>
HeaderEnd<CR><LF>
LineStart<CR><LF>
EEEFFFGGG<CR><LF>
LineEnd<CR><LF>
LineStart<CR><LF>
EEEFFFGGG<CR><LF>
SubLineStart<CR><LF>
HHHIIIJJJ<CR><LF>
SubLineEnd<CR><LF>
LineEnd<CR><LF>

_________________
IBM Certified Solution Developer WebSphere Message Broker V6.0
IBM Certified System Administrator WebSphere MQ V6.0
Back to top
View user's profile Send private message Send e-mail
mqjeff
PostPosted: Tue Jul 20, 2010 2:15 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Is "HeaderStart<CR><LF>" an actual fixed value?

If so, I'd use it as a Tag in a TDS message.

And I'd use "HeaderEnd<CR><LF>" as a group terminator.

And likewise with LineStart<CR><LF> and SubLineStart<CR><LF> and etc.

Then your model just has a group that represents the header, which contains your fields, and a group that represents a Line, with an optional subgroup for the subline.

There's a link here to a tutorial on fixed length messaging - that's not entirely what you've got here (but it *could* be). It'll at least get you moving in the right direction.
Back to top
View user's profile Send private message
satya2481
PostPosted: Tue Jul 20, 2010 4:36 am    Post subject: Reply with quote

Disciple

Joined: 26 Apr 2007
Posts: 170
Location: Bengaluru

Yes, "HeaderStart<CR><LF>" is a Physical value in the incoming message.
I have used HeaderStart as a Tag and <CR><LF> as the record delimiter. As you (mqjeff) said I have used HeaderEnd<CR><LF> as a Group terminator.
I am able to create Header Elements and Line Elements, if I add SubLine complex type as an element for the Line Segment then the message not getting parsed correctly...

You (mqjeff) have mentioned that
Quote:
There's a link here to a tutorial on fixed length messaging

Please provide the link, let me check if I get some hints from that.
Back to top
View user's profile Send private message Send e-mail
mqjeff
PostPosted: Tue Jul 20, 2010 4:50 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

http://www.mqseries.net/phpBB2/viewforum.php?f=7
Back to top
View user's profile Send private message
satya2481
PostPosted: Mon Jul 26, 2010 1:35 am    Post subject: Reply with quote

Disciple

Joined: 26 Apr 2007
Posts: 170
Location: Bengaluru

Hi,
I had a discussion with Sending application and proposed a new structure as shown below.

HEADField1Field2Field3<CR><LF>
LINEField1Field2Field3<CR><LF>
SUBLField1Field2Field3<CR><LF>
LINEField1Field2Field3<CR><LF>
SUBLField1Field2Field3<CR><LF>
SUBLField1Field2Field3<CR><LF>

Where HEAD, LINE and SUBL can be used as the tags in the message set and they are fixed length tags.

If sending application agrees for this then I will go ahead with new structure.

Thanks for all your replies.

- Satya
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » MessageDefinition in MRM Domain TDS Format
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.