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 » BLOB to character ---solved

Post new topic  Reply to topic
 BLOB to character ---solved « View previous topic :: View next topic » 
Author Message
bindu
PostPosted: Fri May 07, 2004 9:05 am    Post subject: BLOB to character ---solved Reply with quote

Voyager

Joined: 07 May 2004
Posts: 97

Hi,
I am getting a fixed length string as request message so i need to store that one in a character. Any suggestions.
Thanx,
bindu


Last edited by bindu on Mon May 10, 2004 5:02 am; edited 2 times in total
Back to top
View user's profile Send private message
Missam
PostPosted: Fri May 07, 2004 9:15 am    Post subject: Reply with quote

Chevalier

Joined: 16 Oct 2003
Posts: 424

Quote:

I am getting a fixed length string as request message so i need to store that one in a character

Store where...?
Can u come out with some detail info what exactly u want to do..?
Back to top
View user's profile Send private message
bindu
PostPosted: Fri May 07, 2004 9:25 am    Post subject: BLOB to character Reply with quote

Voyager

Joined: 07 May 2004
Posts: 97

Hi,
I want to store that entire string (BLOB) into a character
Back to top
View user's profile Send private message
Missam
PostPosted: Fri May 07, 2004 9:34 am    Post subject: Reply with quote

Chevalier

Joined: 16 Oct 2003
Posts: 424

Yes you can use CAST to store entire BLOB into Character Variable.

Look into ESQL Refernece for Transforming Data from One datatype to another.
Back to top
View user's profile Send private message
bindu
PostPosted: Fri May 07, 2004 9:37 am    Post subject: BLOB to character Reply with quote

Voyager

Joined: 07 May 2004
Posts: 97

Hi,
If you have any idea can u help me for that casting.....right now i am trying for that only...but i struck how can i
Thanx,
bindu
Back to top
View user's profile Send private message
Missam
PostPosted: Fri May 07, 2004 9:44 am    Post subject: Reply with quote

Chevalier

Joined: 16 Oct 2003
Posts: 424

Code:
DECLARE B CHARACTER;
SET B = CAST(InputRoot.BLOB.BLOB As Character CCSID InputRoot.Properties.CodedCharSetId ENCODING InputRoot.Properties.Encoding);


from the above code B holds entire input message(BLOB) as Character Data.
The thing i'm intersted to know is after storing entire BLOB into Character Variable,what you want to do with that.


Last edited by Missam on Fri May 07, 2004 9:48 am; edited 1 time in total
Back to top
View user's profile Send private message
bindu
PostPosted: Fri May 07, 2004 9:46 am    Post subject: BLOB to character Reply with quote

Voyager

Joined: 07 May 2004
Posts: 97

Hi,
Thanx for ur help.After that i want to substring that entire message and transform to XML file,
Thanx,
Bindu
Back to top
View user's profile Send private message
bindu
PostPosted: Fri May 07, 2004 9:58 am    Post subject: BLOB to character Reply with quote

Voyager

Joined: 07 May 2004
Posts: 97

Hi,
I tried by using your code but it goes to failure...I am giving my compute node code below

SET OutputRoot = InputRoot;
-- Enter SQL below this line. SQL above this line might be regenerated, causing any modifications to be lost.

DECLARE MSG CHARACTER;
SET MSG=CAST(InputRoot.BLOB.BLOB As CHARACTER);
SET OutputRoot.XML."envelope"."message"=MSG;

and also i saw sysntex error

thanx,
bindu
Back to top
View user's profile Send private message
Missam
PostPosted: Fri May 07, 2004 10:34 am    Post subject: Reply with quote

Chevalier

Joined: 16 Oct 2003
Posts: 424

Uncheck the radio button Copy Entire Message.

then try this ESQL

Code:

SET OutputRoot.Properties.MessageDomain = 'XML';
SET OutputRoot.MQMD = InputRoot.MQMD;
DECLARE MSG CHARACTER;
SET MSG = CAST(InputRoot.BLOB.BLOB As Character);
SET OutputRoot.XML."envelope"."message" = MSG;
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » BLOB to character ---solved
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.