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 unknown MAX no. of occurances

Post new topic  Reply to topic
 Variable length messages with unknown MAX no. of occurances « View previous topic :: View next topic » 
Author Message
Ajit
PostPosted: Mon May 03, 2004 10:20 pm    Post subject: Variable length messages with unknown MAX no. of occurances Reply with quote

Newbie

Joined: 14 Apr 2004
Posts: 8

I have to prepare a XML to MRM flow. I don't know what would be the max number of times one particular tag will repeat in the input XML. I will be using the OCCURS DEPENDING ON clause in my copybook. There I should not mention OCCURS FROM 1 TO MAX clause (as I dont know the MAX number the tag will repeat). Can anybody suggest me any solution for this? What should be the caluse in the copybook or any other entirely different solution to this problem?

Thanks,
Ajit.
Back to top
View user's profile Send private message Send e-mail
kirani
PostPosted: Mon May 03, 2004 10:47 pm    Post subject: Reply with quote

Jedi Knight

Joined: 05 Sep 2001
Posts: 3779
Location: Torrance, CA, USA

I am not a COBOL expert, but you can just say "OCCURS DEPENDING ON" in your COBOL copybook.
When modeling your MRM message, set the element property in Connection tab to "Repeat". Also, in CWF tab, specify Repeat Value of some Integer element.
_________________
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
wooda
PostPosted: Tue May 04, 2004 8:49 am    Post subject: Reply with quote

Master

Joined: 21 Nov 2003
Posts: 265
Location: UK

You didn't mention what version you are using.
FYI - In V5 Repeat Value Of is called Repeat Reference.
Back to top
View user's profile Send private message
Ajit
PostPosted: Wed May 05, 2004 2:34 am    Post subject: Reply with quote

Newbie

Joined: 14 Apr 2004
Posts: 8

It worked when I did following:

1. In my message set, while modelling the message, in the Connection tab I made the value of "Repeat" as "Yes".

2. In the CWF tab, I made the "Repeat Count Type" field to have the value "Value of".

In this case I did not need to give the value of MAX no. ocurances in the copybook.

Thanks Kiran
Back to top
View user's profile Send private message Send e-mail
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 unknown MAX no. of 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.