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 » JAVA to ESQL

Post new topic  Reply to topic
 JAVA to ESQL « View previous topic :: View next topic » 
Author Message
my_mqmb
PostPosted: Tue May 08, 2012 5:01 am    Post subject: JAVA to ESQL Reply with quote

Voyager

Joined: 08 Jun 2011
Posts: 84

In JAVA::

encodeHex(byte[] data)


Converts an array of bytes into an array of characters representing the hexadecimal values of each byte in order.

In ESQL ::


??
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Tue May 08, 2012 5:05 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

Google is your friend.

http://publib.boulder.ibm.com/infocenter/wmbhelp/v6r1m0/index.jsp?topic=%2Fcom.ibm.etools.mft.doc%2Fac67173_.htm

http://www.ibm.com/developerworks/forums/thread.jspa?threadID=131984

http://publib.boulder.ibm.com/infocenter/wmbhelp/v7r0m0/index.jsp?topic=%2Fcom.ibm.etools.mft.doc%2Fac67201_.htm

and many many many more...

Have you gone to class yet?

http://www-304.ibm.com/jct03001c/services/learning/ites.wss/us/en?pageType=course_description&courseCode=WM663

In class, you will learn many good things, grass hopper.
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
mqjeff
PostPosted: Tue May 08, 2012 5:06 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

CAST AS BLOB. Do not specify a CCSID.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Tue May 08, 2012 5:08 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

lancelotlinc wrote:
Google is your friend.

http://publib.boulder.ibm.com/infocenter/wmbhelp/v6r1m0/index.jsp?topic=%2Fcom.ibm.etools.mft.doc%2Fac67173_.htm

http://www.ibm.com/developerworks/forums/thread.jspa?threadID=131984

http://publib.boulder.ibm.com/infocenter/wmbhelp/v7r0m0/index.jsp?topic=%2Fcom.ibm.etools.mft.doc%2Fac67201_.htm

and many many many more...


amazingly enough, all of those links answer a question different than the one that was asked.
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Tue May 08, 2012 5:09 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

mqjeff wrote:
lancelotlinc wrote:
Google is your friend.

http://publib.boulder.ibm.com/infocenter/wmbhelp/v6r1m0/index.jsp?topic=%2Fcom.ibm.etools.mft.doc%2Fac67173_.htm

http://www.ibm.com/developerworks/forums/thread.jspa?threadID=131984

http://publib.boulder.ibm.com/infocenter/wmbhelp/v7r0m0/index.jsp?topic=%2Fcom.ibm.etools.mft.doc%2Fac67201_.htm

and many many many more...


amazingly enough, all of those links answer a question different than the one that was asked.


The point was to demonstrate a methodology, not necessarily give the answer. A combination of the information in the three links addresses some of the OP's question.
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
my_mqmb
PostPosted: Tue May 08, 2012 5:16 am    Post subject: Reply with quote

Voyager

Joined: 08 Jun 2011
Posts: 84

mqjeff wrote:
CAST AS BLOB. Do not specify a CCSID.




thanks for reply , but this one says something different :

This cast can work in two ways:
If you specify either a CCSID or ENCODING clause, the whole string is written out in the code page or encoding that you requested. For example, the string "Cat" in CCSID 850 becomes the three-byte array in hexadecimal, 43,61,74.


If you specify neither the CCSID nor ENCODING clause, the string must itself contain two-character hexadecimal digits of the form X'hhhhhh' or hhhhhh (where h can be any hexadecimal characters). In this case, the input string "436174" becomes the same three-byte binary array (43,61,74).


i need "Cat" to be 43,61,74

for this the documentation says CCSID 850 must be provided.


Please explain ..
Back to top
View user's profile Send private message
my_mqmb
PostPosted: Tue May 08, 2012 5:23 am    Post subject: Reply with quote

Voyager

Joined: 08 Jun 2011
Posts: 84

...l

Last edited by my_mqmb on Tue May 08, 2012 5:49 am; edited 2 times in total
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Tue May 08, 2012 5:24 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

my_mqmb wrote:
lancelotlinc wrote:
Google is your friend. ... In class, you will learn many good things, grass hopper.


classes are too expensive



You should take care of the burden you place on others that result from your lack of due diligence and foresight.
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
mqjeff
PostPosted: Tue May 08, 2012 5:35 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Sorry, I put it backwards. You need to cast a BLOB into a CHAR, and not specify a ccsid.
Back to top
View user's profile Send private message
my_mqmb
PostPosted: Tue May 08, 2012 6:03 am    Post subject: Reply with quote

Voyager

Joined: 08 Jun 2011
Posts: 84

mqjeff wrote:
Sorry, I put it backwards. You need to cast a BLOB into a CHAR, and not specify a ccsid.


is this enough ?
Code:


      SET VSDC_TRACK1  = ElcRef.ns28:Trk1 ;
      DECLARE Trk1Blob BLOB ASBITSTREAM(VSDC_TRACK1);
        SET VSDC_TRACK1  = CAST(Trk1Blob AS CHARACTER);
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 » JAVA to ESQL
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.