|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Using choice group based on the "header" field |
« View previous topic :: View next topic » |
Author |
Message
|
sudaltsov |
Posted: Mon Aug 13, 2012 6:36 am Post subject: Using choice group based on the "header" field |
|
|
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 |
|
 |
mqjeff |
Posted: Mon Aug 13, 2012 7:18 am Post subject: |
|
|
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 |
|
 |
|
|
 |
|
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
|
|
|
|