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 » Fixed Length TDS with repeated payload field max =-1

Post new topic  Reply to topic
 Fixed Length TDS with repeated payload field max =-1 « View previous topic :: View next topic » 
Author Message
angka
PostPosted: Thu Feb 24, 2011 7:45 pm    Post subject: Fixed Length TDS with repeated payload field max =-1 Reply with quote

Chevalier

Joined: 20 Sep 2005
Posts: 406

Hi,

Below is my message format:

1 headerfield1 headerfield2 (Header)
payloadfield1 payloadfield2 payloadfield3 repeat1 (payload)
payloadfield1 payloadfield2 payloadfield3 repeat2
payloadfield1 payloadfield2 payloadfield3 repeat3
payloadfield1 payloadfield2 payloadfield3 repeat4
2 footerfield1 footerfield2 footerfield3 (footer)

I am using TDS as the physical format. each row is terminated with <CR><LF>. I created 3 complex type, header, payload and footer.
I read the documentation, it says tt:
Fixed Length only. An unbounded number of occurrences (Max Occurs = -1) is allowed if the element or group is the last child in its parent group, and the group is terminated by a Group Terminator or a containing group's Group Terminator or Delimiter or by the end of the message bit stream.

how shld i model this message?

Thank you.
Back to top
View user's profile Send private message
Gaya3
PostPosted: Thu Feb 24, 2011 11:25 pm    Post subject: Reply with quote

Jedi

Joined: 12 Sep 2006
Posts: 2493
Location: Boston, US

recordwise is Fixed length
but complex type i mean the parent folder has to be TDS
_________________
Regards
Gayathri
-----------------------------------------------
Do Something Before you Die
Back to top
View user's profile Send private message
angka
PostPosted: Fri Feb 25, 2011 12:03 am    Post subject: Reply with quote

Chevalier

Joined: 20 Sep 2005
Posts: 406

Hi,

Below is my message definition i created:

Message
Header (fixed length 1->1 GT <CR><LF>)
Field1 (length 5)
Field2 (length 6)
Payload (fixed length 1->-1 GT <CR><LF>)
Field1 (length 3)
Field2 (length 10)
Field3 (length 3)
......
Trailer (fixed length 1->1 GT <CR><LF>)
Field1 (length 3)
Field2 (length 10)

no tag at all. but Payload->Field1 value is 01.
I got warning of:
Element 'Payload' has unbounded maxOccurs when the enclosing structure has Data Element Separation 'FixedLength'. It must be the last member of the structure. Physical format: 'FixLength'.

Thank you.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Fri Feb 25, 2011 5:31 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

If you had used [ c o d e ] tags, then we would have been able to tell the indentation and thus the hierarchy of your model.

You need for the outer structure of your message to be like this
Code:
Message
     Header
          Body
     Trailer

Then you use the Tag on the trailer to indicate that Body has stopped repeating.
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 » Fixed Length TDS with repeated payload field max =-1
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.