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 » Variable length messages with 0 Occurances

Post new topic  Reply to topic
 Variable length messages with 0 Occurances « View previous topic :: View next topic » 
Author Message
pfaulkner
PostPosted: Mon Jan 13, 2003 2:25 pm    Post subject: Variable length messages with 0 Occurances Reply with quote

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
View user's profile Send private message AIM Address
yaakovd
PostPosted: Mon Jan 20, 2003 9:35 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
pfaulkner
PostPosted: Wed Jan 22, 2003 2:32 pm    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
kirani
PostPosted: Thu Jan 23, 2003 5:49 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
pfaulkner
PostPosted: Fri Jan 24, 2003 7:40 am    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Variable length messages with 0 Occurances
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.