|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Variable length messages with 0 Occurances |
« View previous topic :: View next topic » |
Author |
Message
|
pfaulkner |
Posted: Mon Jan 13, 2003 2:25 pm Post subject: Variable length messages with 0 Occurances |
|
|
Master
Joined: 18 Mar 2002 Posts: 241 Location: Colorado, USA
|
I have a message that contains a portion that is variable length, I've defined the Connection Tab as MIN OCCURS 0 and MAX OCCURS 100. Everything works fine when there are 1 or more occurances but if I don't have any it fails with a parse error. It seems to still want to parse at least 1???
Anyone know if you have really used MIN = 0???
thanks |
|
Back to top |
|
 |
yaakovd |
Posted: Mon Jan 20, 2003 9:35 am Post subject: |
|
|
Partisan
Joined: 20 Jan 2003 Posts: 319 Location: Israel
|
Hi,
You also need set parameter mandatory "No" _________________ Best regards.
Yaakov
SWG, IBM Commerce, Israel |
|
Back to top |
|
 |
pfaulkner |
Posted: Wed Jan 22, 2003 2:32 pm Post subject: |
|
|
Master
Joined: 18 Mar 2002 Posts: 241 Location: Colorado, USA
|
I've looked at every tab on my message set but coulnd't find a 'mandatory flag', I am using CSD 2 still so it's probably new in CSD 3. Would you mind confirming what CSD level you are running and where you see the flag.
Thanks |
|
Back to top |
|
 |
kirani |
Posted: Thu Jan 23, 2003 5:49 pm Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
Paul,
What is your Wire format set to? CWF?? In CWF you can either have fixed number of repeats or OCCURS DEPENDING ON ... type of repeat. _________________ Kiran
IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries
|
|
Back to top |
|
 |
pfaulkner |
Posted: Fri Jan 24, 2003 7:40 am Post subject: |
|
|
Master
Joined: 18 Mar 2002 Posts: 241 Location: Colorado, USA
|
Hey Kirani,
It is CWF. And I am using the OCCURS DEPENDING ON which I have set as 0 to 120. I didn't realize that COBOL supported zero. Anyway I think the problem was because in the mapping on my Compute node I was moving the complete structure from the COBOL version to the XML version of the message and it didn't find any data in the variable part of the message. When I changed my code to check the occurs depending on index and move the table entries in a loop this worked fine (because nothing was attempted to be moved when the occurs index was zero). |
|
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
|
|
|
|