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 » [SOLVED] TDS message with no group delimiter

Post new topic  Reply to topic
 [SOLVED] TDS message with no group delimiter « View previous topic :: View next topic » 
Author Message
gbailey
PostPosted: Mon Oct 04, 2004 2:03 am    Post subject: [SOLVED] TDS message with no group delimiter Reply with quote

Newbie

Joined: 25 Sep 2002
Posts: 9
Location: Farnborough, UK

I am trying to model the following message in TDS:

[2,A123,GBJA20, ][GBJA20,A123,UNKN][073500,+0002H][0730 ,0731H]{0020}[FILE,G12345](0)

It contains seven groups with group identifiers, though these groups are not themeselves separated by delimiters. Each group is delimited, although the data is a fixed lengh (padded by spaces). Using a combination of fixed length and variable length delimited I can successfully model the message, provided I supply a dummy value for the non-existant delimiter in the overall group. Is there anyway round this? As if the dummy value is in the data the message gets parsed wrongly. How can I set the overall group not to have a delimiter?


Last edited by gbailey on Fri Oct 08, 2004 3:29 am; edited 1 time in total
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Mon Oct 04, 2004 3:08 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

If instead of using group indicators and delimiters, you use tags, this should work.

But unless I'm misparsing your sample message, isn't ']' your group delimiter?
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
gbailey
PostPosted: Mon Oct 04, 2004 4:36 am    Post subject: Reply with quote

Newbie

Joined: 25 Sep 2002
Posts: 9
Location: Farnborough, UK

I modeled the message by splitting it into seven groups. Five of these have [] group indicators, but one has () and another {}. Within the groups I have used ',' as the delimiter. How would I use tags?
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Mon Oct 04, 2004 4:50 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Well, I wouldn't say that '[]' or '()' or '{}' were your group indicators, necessarily.

You have three group indicators: '[', '(', and '{'; and then three group terminatiors: ']',')','}'.

If you really didn't have group terminators, then you could use '[' and etc. as your tag values instead. But you do have group terminators, so it's probably better to use them.

So if I understand things right, you have a model like this:
  • Element of Message type
    • Element of Group1 type, with indicator '[' and terminator ']'
    • Element of Group2 type, with indicator '[' and terminator ']'
    • Element of Group3 type, with indicator '[' and terminator ']'
    • Element of Group4 type, with indicator '[' and terminator ']'
    • Element of Group5 type, with indicator '{' and terminator '}'
    • Element of Group6 type, with indicator '[' and terminator ']'
    • Element of Group7 type, with indicator '(' and terminator ')'
Each of your group types would be variable or all elements delimited, and have a delimiter of ','.

But maybe this isn't your question? Are you asking about missing/optional elements inside a group?
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
gbailey
PostPosted: Thu Oct 07, 2004 1:57 am    Post subject: Reply with quote

Newbie

Joined: 25 Sep 2002
Posts: 9
Location: Farnborough, UK

All the groups have the group indicators as you said.

The problem comes with my overall type that contains all the groups. The overall type has to be variable length delimited, but there is nothing delimiting the groups. By sticking in a random delimiter (such as @, or |, or even @$&!!!), I can get round the problem, but I would like to have some way of saying that there are no delimiters between the groups. Is this possible?
Back to top
View user's profile Send private message
shanson
PostPosted: Thu Oct 07, 2004 3:31 am    Post subject: Reply with quote

Partisan

Joined: 17 Oct 2003
Posts: 344
Location: IBM Hursley

There is a trick you can use here. You set the top level type to have data element separation of 'Tagged Delimited' but you don't set a delimiter. Nor do you set tags for the child group elements.

So that's Tagged Delimited without tags or a delimiter. I know that sounds a bit odd but it works as long as all the children are themselves of complex type and their starts and ends can be identified - which yours are as they have GI and GT.

The tooling will force you to provide a tag data separator or a tag length. Set the tag data separator to something like 'UNUSED'. An alternative that *should* work is to set tag length to zero - but I have not tried this myself. If I find out I'll post again.
Back to top
View user's profile Send private message
gbailey
PostPosted: Fri Oct 08, 2004 3:24 am    Post subject: Reply with quote

Newbie

Joined: 25 Sep 2002
Posts: 9
Location: Farnborough, UK

I have tried that with the tag length set as zero on Tagged Delimited and it appears to work. I didn't need to have a tag name of 'UNKNOWN'.

Thanks!
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 » [SOLVED] TDS message with no group delimiter
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.