Author |
Message
|
Kool-Aid |
Posted: Thu Apr 22, 2004 8:07 am Post subject: Correct Syntax when using EQSL |
|
|
 Novice
Joined: 22 Apr 2004 Posts: 22
|
I am trying to use the SET Function to create an element. I keep getting a syntax error. I don't think it likes the SEGMENT='1'. What I need to display is SEGMENT="1". The equal sign and quotes maybe causing an error. Is there any way I can show that this is just a name?
SET "OutputRoot"."XML"."BOMMAT03"."EDIC_DC40 SEGMENT='1'"."FIELD2" =
TRIM("InputBody"."BBC.OC.TEST"."BBCTEST.OC"."Field_2"); |
|
Back to top |
|
 |
sebastian |
Posted: Thu Apr 22, 2004 8:14 am Post subject: |
|
|
 Centurion
Joined: 12 Nov 2003 Posts: 110 Location: Philadelphia
|
What version of MQSI and CSD levels are you using for configuration manager, control center and broker?
Sebastian _________________ sebastian signature |
|
Back to top |
|
 |
Kool-Aid |
Posted: Thu Apr 22, 2004 8:17 am Post subject: |
|
|
 Novice
Joined: 22 Apr 2004 Posts: 22
|
I am using MQSI v2.1 and the config mgr and control center are at base level CSD and the broker is at CSD03. |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Apr 22, 2004 8:31 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Are you trying to create an XML Attribute called "Segment" with the value of "1"?
Then you need to create an XML Attribute called "Segment" and then assign it the value of 1.
This is done with a different statement than the one that creates and assigns the value to your XML Element. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
Kool-Aid |
Posted: Thu Apr 22, 2004 8:47 am Post subject: |
|
|
 Novice
Joined: 22 Apr 2004 Posts: 22
|
-Yes, I am trying to create an XML Attribute called "Segment" with the value of "1"
- I will try to create the XML Attribute called "Segment" and then assign it the value of 1
Hopefully this will work but I am trying to actually replace an exsisting Element with this new attribute.
Example:
Coming into EQSL I get:
<KOOL-AID>
Going out I want:
<KOOL-AID SEGMENT="1"> |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Apr 22, 2004 9:15 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
You should spend some time reading the Working With Messages manual before you do a lot more work with WMQI.
You do not seem to understand the logical message tree very well, and you can't be very effective with WMQI without that. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
Empeterson |
Posted: Thu Apr 22, 2004 9:17 am Post subject: |
|
|
Centurion
Joined: 14 Apr 2003 Posts: 125 Location: Foxboro, MA
|
To Create an XML attribute, the code is:
SET KOOL-AID.(XML.Attribute)SEGMENT = '1';
That will produce <KOOL-AID SEGMENT = "1"> _________________ IBM Certified Specialist: MQSeries
IBM Certified Specalist: Websphere MQ Integrator |
|
Back to top |
|
 |
|