|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
OutputlocalEnvoironment ............ |
« View previous topic :: View next topic » |
Author |
Message
|
prasadkathale |
Posted: Thu Jan 22, 2009 11:50 pm Post subject: OutputlocalEnvoironment ............ |
|
|
Newbie
Joined: 12 Jan 2009 Posts: 1
|
I am trying to set an OutputLocalEnvoirnment but not able to get values of message in it ...Can anyone please suggest
my code
call CopyMessage();
in the procedure :
CREATE PROCEDURE CopyMessage() BEGIN
DECLARE NAME CHARACTER '';
SET OutputLocalEnvoirnment."v"."c1" = InputRoot.XMLNS."NAME"."NAME1";
SET name = Envoirnment."v"."c1";
SET OutputRoot.BLOB.BLOB = CAST(name AS BLOB CCSID 1208);
END;
END MODULE;
i have a xmlns message which contains name in following format
<name><name1>prasad</name1></name>
can u please suggest the proper use of OutputLocalEnvoirnment |
|
Back to top |
|
 |
viswanath |
Posted: Fri Jan 23, 2009 12:52 am Post subject: |
|
|
Apprentice
Joined: 09 Jun 2005 Posts: 33
|
What exactly you want to do with the localenvironment you are defining? |
|
Back to top |
|
 |
Vitor |
Posted: Fri Jan 23, 2009 1:03 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Moved to correct section _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
Vitor |
Posted: Fri Jan 23, 2009 1:25 am Post subject: Re: OutputlocalEnvoironment ............ |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
prasadkathale wrote: |
I am trying to set an OutputLocalEnvoirnment but not able to get values of message in it ...Can anyone please suggest |
I'm surprised the Toolkit didn't highlight one issue - that OutputLocalEnvironment is not spelt OutputLocalEnvoirnment, any more than Environment is spelt Envoirnment! Certainly shouldn't have deployed.
Moving past that, when you say you can't get values into it, do you mean that it's not set when you try and reference it in the next mode? That suggests the Compute node mode is set wrong.
prasadkathale wrote: |
SET OutputLocalEnvoirnment."v"."c1" = InputRoot.XMLNS."NAME"."NAME1";
SET name = Envoirnment."v"."c1";
SET OutputRoot.BLOB.BLOB = CAST(name AS BLOB CCSID 1208);
|
Aside from the design question of what, exactly, you're trying to do here, you do realise that the LocalEnvironment is a different storage area to Environment? So "name" in your example will be null when you cast it? For whatever bizzare reason you're casting it? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
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
|
|
|
|