|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
MOVE with dynamic fields not working. |
« View previous topic :: View next topic » |
Author |
Message
|
Herbert |
Posted: Wed Apr 08, 2009 6:27 am Post subject: MOVE with dynamic fields not working. |
|
|
 Centurion
Joined: 05 Dec 2006 Posts: 146 Location: Leersum, The Netherlands
|
Hi,
Given below ESQL code, IMHO both MOVE statements should work the same, however only the second works, the first one does not move the cursor.
Kind Regards, Herbert
Code: |
DECLARE ns NAMESPACE 'http://my.org/abc/klm/2008/03';
DECLARE abc CHAR;
DECLARE klm CHAR;
DECLARE ns CHAR;
SET abc = 'abc';
SET klm = 'klm';
SET ns = 'ns';
MOVE cursor TO Environment.{abc}.{ns}:{klm}.{ns}:body.{ns}:xyz;
MOVE cursor TO Environment.abc.ns:klm.ns:body.ns:xyz; |
|
|
Back to top |
|
 |
fjb_saper |
Posted: Wed Apr 08, 2009 2:06 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
I believe your problem is with the namespace.
You really should define it like this
What happens if you try it?
Code: |
declare nsstr char 'http://mynamespace';
DECLARE abc CHAR;
DECLARE klm CHAR;
SET abc = 'abc';
SET klm = 'klm';
set nsstr= 'http://yournamespace';
declare ns namespace nsstr;
MOVE cursor TO Environment.{abc}.{nsstr}:{klm}.{nsstr}:body.{nsstr}:xyz;
MOVE cursor TO Environment.abc.ns:klm.ns:body.ns:xyz; |
Have fun  _________________ MQ & Broker admin |
|
Back to top |
|
 |
Herbert |
Posted: Thu Apr 09, 2009 12:55 am Post subject: |
|
|
 Centurion
Joined: 05 Dec 2006 Posts: 146 Location: Leersum, The Netherlands
|
fjb_saper wrote: |
I believe your problem is with the namespace.
You really should define it like this
What happens if you try it?
Code: |
declare nsstr char 'http://mynamespace'; |
|
yes, that was the problem, thanks for your answer.
hgj |
|
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
|
|
|
|