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 » Using choice group based on the "header" field

Post new topic  Reply to topic
 Using choice group based on the "header" field « View previous topic :: View next topic » 
Author Message
sudaltsov
PostPosted: Mon Aug 13, 2012 6:36 am    Post subject: Using choice group based on the "header" field Reply with quote

Voyager

Joined: 02 May 2012
Posts: 82

Hi all

I have a TDS message format of the following structure. First, goes the header:

Header
hdrfld1
hdrfld2
hdrfld3

Then goes a choice of sequences, depending on hdrfld2 (predefined constant strings 'A', 'B', 'C')

DataA
dataAfld1
dataAfld2
dataAfld3

or

DataB
dataBfld1
dataBfld2

or

DataC
dataCfld1
dataCfld2
dataCfld3
dataCfld4

Is that possible for TDS parser? How could I put that into the message definition? Tried to assign tags 'A', 'B', 'C' to the sequences - but I cannot find the place where I would explain that hdrfld2 should be used for the tag matching.

The length of DataA, DataB, DataC is same, if that matters. Everything is fixed length.

Any help would be appreciated.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Mon Aug 13, 2012 7:18 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

You have to cheat the structure.

Code:
Message - tagged/fixed length
     Header
          hdfld1
     Sequence - choice, tagged/fixed length
           DataA - tag 'A'
                 hdrfld3
                 DataAfld1
                 DataAfld2
                 DataAfld3
           Datab -
                 hdrfld3
                 dataBfld1
                 databfld2
....
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 » Using choice group based on the "header" field
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.