|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Fixed Length TDS with repeated payload field max =-1 |
« View previous topic :: View next topic » |
Author |
Message
|
angka |
Posted: Thu Feb 24, 2011 7:45 pm Post subject: Fixed Length TDS with repeated payload field max =-1 |
|
|
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 |
|
 |
Gaya3 |
Posted: Thu Feb 24, 2011 11:25 pm Post subject: |
|
|
 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 |
|
 |
angka |
Posted: Fri Feb 25, 2011 12:03 am Post subject: |
|
|
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 |
|
 |
mqjeff |
Posted: Fri Feb 25, 2011 5:31 am Post subject: |
|
|
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 |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|