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 » Both Parent and Child repeating in TDS

Post new topic  Reply to topic
 Both Parent and Child repeating in TDS « View previous topic :: View next topic » 
Author Message
Yuvaraj
PostPosted: Tue Oct 28, 2003 6:22 am    Post subject: Both Parent and Child repeating in TDS Reply with quote

Apprentice

Joined: 28 Oct 2003
Posts: 30

Hi All

I am trying to get a message in TDS and convert it into an XML format. The structure of my input message is as follows

[list][color=red] Header - No Repeat, of Fixed length
Details - Repeats n times, of Fixed length, starts with PO1 always
Element1 - String
Element2 - String
Notes - Repeats n times, of Fixed length i.e 35 bytes, starts with NTE always
NTE_Element1 - String
NTE_Element2 - String
[/color][/list]

The entire message is comes in [color=brown]one sigle line as a serialized string[/color].

I have created message set of followinng structure
[list][color=darkblue]PO (CT- Ordered, DES - Fixed Length)
Header (CT - Ordered, DES - Fixed Length)
Details (CT - Ordered, DES - Use Data Pattern, GI - PO1, DP - {1,}, Repeat - Y)
Element1 (Length - 5, Data Pattern - .{5})
Element2 (Length - 5, Data Pattern - .{5})
Notes (CT - Ordered, DES - Use Data Pattern, DP - (NTE).{32}, Repeat - Y)
NTE_Element1 (Length - 25, Data Pattern - .{25})
NTE_Element2 (Length - 10, Data Pattern - .{10})

[/color][/list]

But when I debug the message flow, I am getting only the first Note and all the subsequent Notes for that Details are discarded. For e.g. if my message contains 2 details each containing 2 notes, in the message flow I am getting only one notes for each details.

Also I find that the repeatition occurs at only one level - either at the Details or at the Notes.

Can anyone help me out in re-defining the message set so as to correctly parse my input message?

Thanks in advance

regards
Yuvaraj
Back to top
View user's profile Send private message
Craig B
PostPosted: Tue Oct 28, 2003 10:14 am    Post subject: Reply with quote

Partisan

Joined: 18 Jun 2003
Posts: 316
Location: UK

Hi,

You have described the structure of your message, however it would be very helpful if you could show an example of what one of these input messages looks like, so that it can be correlated against the definition you have shown.

Thanks.
_________________
Regards
Craig
Back to top
View user's profile Send private message
Yuvaraj
PostPosted: Tue Oct 28, 2003 11:11 am    Post subject: Reply with quote

Apprentice

Joined: 28 Oct 2003
Posts: 30

Hi Craig

My input message looks likes this

Code:
[color=red]177_CORP  12   300234    0001 10359177  [/color][color=darkblue]PO14236 CASE 178  01   10.[u]00NTEThis is a test line 1    LNOTE     [/u]NTEThis is a test line 2    LNOTE     NTEThis is a test line 3    LNOTE     [/color][color=brown]PO14237 PALL 178  01   01.00NTEThis is a test line 4    LINE_NOTE[/color]


Header record is marked in red
First Detail record is marked in darkblue (segment starting with PO1)
Second Detail record is marked in brown (segment starting with PO1)

The Notes section for each details starts with tag NTE. One of the note section I have underlined. The Note section has two elements. For e.g the first Note section of the first Detail record has 2 elements whose values are -

Element1 value = This is a test line 1
Element2 value = LNOTE

Thanks & Regards
Yuvaraj
Back to top
View user's profile Send private message
Yuvaraj
PostPosted: Fri Oct 31, 2003 5:35 am    Post subject: Reply with quote

Apprentice

Joined: 28 Oct 2003
Posts: 30

Hi

Can anyone help me out with this issue?

Thanks & Regards
Yuvaraj
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 » Both Parent and Child repeating in TDS
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.