|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Repeat References ?? |
« View previous topic :: View next topic » |
Author |
Message
|
Kjell |
Posted: Mon Nov 15, 2004 10:38 am Post subject: Repeat References ?? |
|
|
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 |
|
 |
kirani |
Posted: Mon Nov 15, 2004 12:00 pm Post subject: |
|
|
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 |
|
 |
shanson |
Posted: Tue Nov 16, 2004 5:44 am Post subject: |
|
|
 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 |
|
 |
Kjell |
Posted: Thu Nov 18, 2004 7:12 am Post subject: |
|
|
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 |
|
 |
jefflowrey |
Posted: Thu Nov 18, 2004 8:01 am Post subject: |
|
|
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 |
|
 |
|
|
 |
|
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
|
|
|
|