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 » Repeat References ??

Post new topic  Reply to topic
 Repeat References ?? « View previous topic :: View next topic » 
Author Message
Kjell
PostPosted: Mon Nov 15, 2004 10:38 am    Post subject: Repeat References ?? Reply with quote

Acolyte

Joined: 26 Feb 2002
Posts: 73

Hi

I have a message, Message A. It has the following struc, with a CWF physical layer:
element:sib001 int.
element:sib002 int.
element:sib003 int.
Record001 variable number of occurences, depending on sib001.
------ element: 001A string
-------element: 001B string
Record002 variable number of occurences, depending on sib002.
--------element: 002A string
------element: 002B strin
-------------Record003 (record under record 2). Variable, depending on sib003.
-------------------- element: 003A string
-------------------- element: 003B string

I have managed to set the repeat reference for Record001 and Record002, under the properties for each record. BUT, I cannot do this for Record003. When I click properties for this record, I cannot see any physical ones. Just a blank page. Does this mean that variable occurences are allowed on "level 1 " only??

Best
Kjell
Back to top
View user's profile Send private message
kirani
PostPosted: Mon Nov 15, 2004 12:00 pm    Post subject: Reply with quote

Jedi Knight

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

Broker can only set "OCCURS DEPENDING UPON" for the elements at the same level. i.e. Record3 and sib003 should be at the same level (within same type).
_________________
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
shanson
PostPosted: Tue Nov 16, 2004 5:44 am    Post subject: Reply with quote

Partisan

Joined: 17 Oct 2003
Posts: 344
Location: IBM Hursley

While Kiran is correct in that the repeat reference integer has to have the same parent as the repeating element (a restriction we aim to remove in a future release), I am puzzled as to why no properties appeared for Record003? Is the main mxsd file using 'include'?
Back to top
View user's profile Send private message
Kjell
PostPosted: Thu Nov 18, 2004 7:12 am    Post subject: Reply with quote

Acolyte

Joined: 26 Feb 2002
Posts: 73

Hi

The thing is, that in the original input message there are no counters at all!
It is a flatfile with a number of records of different types just following after each other. What is there for each record in the message is the segment identifier and a segment length.

So in structure given above the sib... counters is something that I have added. I then planned to take the message in as a BLOB, to loop thru the message and count the records of each type, add the counters to the beginning of the BLOB and then cast to MRM.
This is far too tricky, but as I see it the only solution.

My wish for next release: Could it be possible in the message to set the repeat reference to any variable, say that you could set the repeat rerefence to
Environment.Variables.repeatReferences.[variablename].

That would definitely solve my problem in a very good way.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Thu Nov 18, 2004 8:01 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

If you don't have counters, and you do have "segment identifiers", then you should be using TDS instead of CWF.

Unless you have very specific performance goals, or you need to support packed decimals. Then you have to use CWF - and I suspect that your performance goals will not be met if you have to count records.

If you use TDS, then you can treat your segment identifiers as tags or a data pattern, and you will not have to handle identifing the repeat counts.
_________________
I am *not* the model of the modern major general.
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 » Repeat References ??
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.