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 » Msg Model: Choice Group Issue

Post new topic  Reply to topic
 Msg Model: Choice Group Issue « View previous topic :: View next topic » 
Author Message
tigerstone
PostPosted: Wed Sep 17, 2014 6:24 am    Post subject: Msg Model: Choice Group Issue Reply with quote

Novice

Joined: 06 Feb 2014
Posts: 20

Data Sample1: 1:xxxxx 2:Iyyyyy
Data Sample2: 1:xxxxx 2:Ozzzzz

Complete TDS Message Model:

Types:

Basic Block (Group Indicator '1:', Data Element Seperation: 'Fixed Length')
Local Element: X (Length 5)

Application_I(Group Indicator '2:I', Data Element Seperation: 'Fixed Length')
Local Element: Y (Length 5)

Application_O(Group Indicator '2:O', Data Element Seperation: 'Fixed Length')
Local Element: Z (Length 5)

Application Block (Choice Group, Data Element Seperation: 'Fixed Length')
Local Elements: Application_I (0:1), Application_O(0:1)

The issue is that the program is unable to parse the Application Block.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Wed Sep 17, 2014 6:32 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Use "1","2","I" and "O" as tags, ":" as a tag/data separator, and build your model like
Code:
applicationBlock
    Choice:
        BasicBlock
        AppBlock
             Choice: <tag/data separator = "">
                  AppIBlock
                  AppOBlock

And let the tags resolve the choices.
Back to top
View user's profile Send private message
tigerstone
PostPosted: Wed Sep 17, 2014 7:17 am    Post subject: Reply with quote

Novice

Joined: 06 Feb 2014
Posts: 20

And If the data is as such

Data Sample1: 1:xxxxxAAAABBB 2:IyyyyyCCDDDDE
Data Sample2: 1:xxxxxAAAABBB 2:OzzzzzCCDDDDE

That is the Basic Block, Application_I and Application_O complex types have more than 1 Local element.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Wed Sep 17, 2014 7:23 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

tigerstone wrote:
And If the data is as such

Data Sample1: 1:xxxxxAAAABBB 2:IyyyyyCCDDDDE
Data Sample2: 1:xxxxxAAAABBB 2:OzzzzzCCDDDDE

That is the Basic Block, Application_I and Application_O complex types have more than 1 Local element.


Then you add the additional elements to the relevant types.
Code:
applicationBlock
    Choice:
        BasicBlock
           field1
           field2
        AppBlock
             Choice: <tag/data separator = "">
                  AppIBlock
                      field1
                      field2
                  AppOBlock
                      field1
                      field2


the main point is to use tags instead of group indicators, and use tag/data separator to indicate the ":" where it's used.

The rest is just basic message modelling.
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 » Msg Model: Choice Group Issue
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.