MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

converting byte string to character or hexadecimal string

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
mfuser
Banned


Joined: 01 Mar 2005
Posts: 105
Topics: 58

PostPosted: Wed Jul 19, 2006 1:31 am    Post subject: converting byte string to character or hexadecimal string Reply with quote

Members,

I have a variable defined by system as :
Code:

**    Message identifier                               
   15 MQMD-MSGID            PIC X(24) VALUE LOW-VALUES.

The MQ Queue Manager generates Message id automatically in this field and when i try to display this field i have some none displayable characters in the output and basically it is byte string rather than a character string.My intention is to display the field in Displayable format to read properly in a report.Is there any function in COBOL which can convert to what i am asking for , even displaying in hexadecimal will also do for me.
Back to top
View user's profile Send private message
Cogito-Ergo-Sum
Advanced


Joined: 15 Dec 2002
Posts: 637
Topics: 43
Location: Bengaluru, INDIA

PostPosted: Fri Jul 21, 2006 1:22 pm    Post subject: Reply with quote

Quote:
even displaying in hexadecimal will also do for me


That it is doing already !

If you want to see the actual value, try doing HEX ON after exporting (CSQUTIL, maybe) to a dataset.
_________________
ALL opinions are welcome.

Debugging tip:
When you have eliminated all which is impossible, then whatever remains, however improbable, must be the truth.
-- Sherlock Holmes.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
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


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group