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 » TDS Message Set Issue

Post new topic  Reply to topic
 TDS Message Set Issue « View previous topic :: View next topic » 
Author Message
vk
PostPosted: Wed Sep 28, 2005 4:55 pm    Post subject: TDS Message Set Issue Reply with quote

Partisan

Joined: 20 Sep 2005
Posts: 302
Location: Houston

Hi,

Is it possible in WMQI 2.1 to create a TDS message set of a repeating header - detail format as shown below -

H1 D11 D12 D13 H2 D21 D22 H3 D31 D32 etc

Each header is followed by its associated detail records. All records have the same length. Each record is preceeded by a tag, H for header and D for detail.

I tried creating the following nested structure. But I am not sure what value to give for 'Data Element Separation' for the outermost type.

Msg of type - Msg_Type (????)
Repeat_Element of type - Repeat_Type (Tagged Fixed Length)
Header of type - Hdr_Type (Fixed Length)
Detail of type - Detail_Type (Fixed Length)

Header and Detail elements have tag set to H and D respectively.

Thanks in advance.
Vk.
Back to top
View user's profile Send private message
elvis_gn
PostPosted: Wed Sep 28, 2005 8:49 pm    Post subject: Reply with quote

Padawan

Joined: 08 Oct 2004
Posts: 1905
Location: Dubai

I did not understand much from the H's and D's u have provided, but i'm sure you'll need to provide an outer message say 'MainMessage' and then under that provide the types....

Each type say T1, T2 can be a H and its D's...

And define one Type as the contents of these T's....

I hope you understood atleast a 1%...

If you could give us a better idea of what this H and D's are, maybe we could help you better....
Back to top
View user's profile Send private message Send e-mail
kimbert
PostPosted: Thu Sep 29, 2005 12:35 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Quote:
Is it possible in WMQI 2.1 to create a TDS message set of a repeating header - detail format...
Yes
Quote:
...as shown below
Almost certainly, but I need to see an example message before I can help any further.
Back to top
View user's profile Send private message
vk
PostPosted: Thu Sep 29, 2005 5:09 am    Post subject: TDS Message Set Issue Reply with quote

Partisan

Joined: 20 Sep 2005
Posts: 302
Location: Houston

Hi,

My message is like this -

HDRHeaderDataDTLDetailDataDTLDetailData
HDRHeaderDataDTLDetailDataDTLDetailData .....

HDR and DTL are tags before each header and detail record follwed by the actual record data.

I did the following -

MainMsg of Type Msg_Type (What to give for Data Element Separation?)
-----Repeat_Element of type Repeat_Type (Tagged Fixed Length)
-------------Hdr_Element of type Hdr_Type (Fixed Length)
----------------------Hdr_Field1
----------------------Hdr_Field2
-------------Dtl_Element of type Dtl_Type (Fixed Length)
----------------------Dtl_Field1
----------------------Dtl_Field2

Hope the above structure is understandable.

Please let me know if this will work. The elements Hdr_Element and Dtl_Element have tags set to 'HDR' and 'DTL'. What to give for Data Element Separation for the outermost type on which the message is based?

Thanks again,
Vk.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Thu Sep 29, 2005 5:10 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

I believe you want to use Fixed Length.

Or maybe variable elements delimited.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
kimbert
PostPosted: Fri Sep 30, 2005 1:05 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

For the outermost type, I would recommend
- Data Element Separation of Tagged Fixed Length
- Tag Length of 0

Why not 'Fixed Length'? The TDS parser needs to know that it will encounter tags within the scope of the outermost type - so 'Fixed Length' might not work. 'Fixed length' is intended for structures which only ever contain untagged fixed length data.
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 » TDS Message Set 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.