ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » MOVE with dynamic fields not working.

Post new topic  Reply to topic
 MOVE with dynamic fields not working. « View previous topic :: View next topic » 
Author Message
Herbert
PostPosted: Wed Apr 08, 2009 6:27 am    Post subject: MOVE with dynamic fields not working. Reply with quote

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
View user's profile Send private message Visit poster's website
fjb_saper
PostPosted: Wed Apr 08, 2009 2:06 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Herbert
PostPosted: Thu Apr 09, 2009 12:55 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » MOVE with dynamic fields not working.
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.