Author |
Message
|
Thameem |
Posted: Sun Jul 21, 2002 11:17 pm Post subject: Duplicate Elements |
|
|
Newbie
Joined: 03 Jul 2002 Posts: 7
|
We have a n MRM which has an element that gets reapeated often, but not contiguously.
To achieve this we have defined the Compound Type with( as said in the pdf Working with messages page 72.)
Type Composition as Sequence.
Type Content as Closed.
But when the assingment is done in Esql the trace file shows all the duplicate elements contiguously, thus the output fails to match the MRM.
Can anyone throw some light on this.
Thanks in Advance
Thameem |
|
Back to top |
|
 |
kirani |
Posted: Mon Jul 22, 2002 4:32 pm Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
Could you post your ESQL code here? _________________ 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 |
|
 |
Thameem |
Posted: Mon Jul 22, 2002 8:25 pm Post subject: |
|
|
Newbie
Joined: 03 Jul 2002 Posts: 7
|
The MRM is defined like this
e1
r1
e2
r1
e3
r1
where r1 is the duplicate element
the ESQL code is :
SET OutputRoot.MRM.e1 = '11111';
SET OutputRoot.MRM.r1[1] = '22222';
SET OutputRoot.MRM.e2 = '33333';
SET OutputRoot.MRM.r1[2] = '44444';
SET OutputRoot.MRM.e3 = '55555';
SET OutputRoot.MRM.r1[3] = '66666';
The Output in the trace is :
11111
22222
44444
66666
33333
55555
So all the duplicate elemenst are being put together contiguously..
Thus the Output fails to match the MRM definition |
|
Back to top |
|
 |
Thameem |
Posted: Mon Jul 22, 2002 8:26 pm Post subject: |
|
|
Newbie
Joined: 03 Jul 2002 Posts: 7
|
The MRM is defined like this
e1
r1
e2
r1
e3
r1
where r1 is the duplicate element
the ESQL code is :
SET OutputRoot.MRM.e1 = '11111';
SET OutputRoot.MRM.r1[1] = '22222';
SET OutputRoot.MRM.e2 = '33333';
SET OutputRoot.MRM.r1[2] = '44444';
SET OutputRoot.MRM.e3 = '55555';
SET OutputRoot.MRM.r1[3] = '66666';
The Output in the trace is :
11111
22222
44444
66666
33333
55555
So all the duplicate elemenst are being put together contiguously..
Thus the Output fails to match the MRM definition |
|
Back to top |
|
 |
kirani |
Posted: Tue Jul 23, 2002 4:20 pm Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
Your ESQL code looks ok. Guess what..I tried to test the similar ESQL code on my machine and I am getting an error. I wonder whether this feature is implemented in MRM or not.
Someone out there who has used this feature could helps us. _________________ 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 |
|
 |
|