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 » conver hex to string

Post new topic  Reply to topic
 conver hex to string « View previous topic :: View next topic » 
Author Message
vikas.bhu
PostPosted: Tue May 25, 2010 6:18 am    Post subject: conver hex to string Reply with quote

Disciple

Joined: 17 May 2009
Posts: 159

Hi

Simply I have to conver from a hex value X'2020202020' to character ..but nothink is woring ..please help..
I am trying like folowing ..

SET Environment.Variables.SeqNum = X'2020202020'

SET Environment.Variables.seqnumtemp = CAST (Environment.Variables.SeqNum AS CHARACTER CCSID InputRoot.Properties.CodedCharSetId);

blank value I am to see as result
Back to top
View user's profile Send private message Send e-mail
mqjeff
PostPosted: Tue May 25, 2010 6:34 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Well, X'2020202020' is the hex representation of 5 space characters in ASCII codepage.

So if the conversion succeeds then it will appear as a string of space characters.

What do you get if you try X'6566676869'?
Back to top
View user's profile Send private message
vikas.bhu
PostPosted: Wed May 26, 2010 12:06 am    Post subject: Reply with quote

Disciple

Joined: 17 May 2009
Posts: 159

Thanks .you are correct.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » conver hex to string
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.