|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Creating a compound element in MQSI 2.1 using ESQL |
« View previous topic :: View next topic » |
Author |
Message
|
philipaby |
Posted: Sun Aug 25, 2002 9:21 am Post subject: Creating a compound element in MQSI 2.1 using ESQL |
|
|
Novice
Joined: 09 Mar 2002 Posts: 13
|
Hi everyone,
I have a requirement where i would like to create a compound element using ESQL. I can create and attach simple elements using the 'create' command in ESQL. Does anyone know how to do this. Example if I say
'create OutputRoot.MQRFH2' then an MQRFH2 element is created. (it becomes like the folder element in the tree). When I create the compound element it need not have all the elements in it, just need the starting point from where i can create all the elements in it. If the elements of the compound type are there with some default values that would be great.
Thanks very much.
Kind Regards
Aby |
|
Back to top |
|
 |
kirani |
Posted: Mon Aug 26, 2002 4:29 pm Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
Aby,
You could create Compound Element by using ..
CREATE FIELD OutputRoot.MQRFH2 TYPE Name NAME 'MQRFH2';
similarly,
CREATE FIELD ... TYPE NameValue NAME ... Value ...;
could be used for creating child elements with default value. _________________ 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 |
|
 |
philipaby |
Posted: Tue Aug 27, 2002 6:57 pm Post subject: The compound element with problems again |
|
|
Novice
Joined: 09 Mar 2002 Posts: 13
|
Hi Kiran,
Thanks very much for the reply. I tried out what you had suggested but the thing is that I wanted to create a compound type under the MQRFH2 compound element or basically my aim is to create one compound element under another. If we look at the message tree while debugging we can see the MQRFH2 compound element and under it there would be another compound element called 'mcd'. (This is the cases of a message flow which has an MRM message).
I was just wondering on how to get about this. I tried the 'create field' with the Type Name to create the MQRFH2 and that compound element is being created, but then I also tried to create the compound element 'Mcd' under the MQRFH2 header but it was coming out as a simple element in the message tree even though I created the element as of Type Name.
Any idea why this is so? I think I might be missing something here.
Thanks
Kind Regards
Aby |
|
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
|
|
|
|