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 

How to transform hex to char

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
waitling
Beginner


Joined: 12 Dec 2006
Posts: 15
Topics: 3

PostPosted: Tue May 15, 2007 10:26 am    Post subject: How to transform hex to char Reply with quote

Hi all

e.g
ORIG
F0F0F0F0F0F0F9F8F7F6F5F4F3F2F1C1C2C3C4C5...
NEW
000000987654321ABCDE...

can dfsort do this?
i have tried but failed, cos i couldn't find a proper data format to represent hex value.

thx in advanced.
Back to top
View user's profile Send private message
Frank Yaeger
Sort Forum Moderator
Sort Forum Moderator


Joined: 02 Dec 2002
Posts: 1618
Topics: 31
Location: San Jose

PostPosted: Tue May 15, 2007 11:13 am    Post subject: Reply with quote

That's NOT hex ... hex would be X'F0F0...C1...'. If that's actually a character string, then it's the EBCDIC representation of the hex values which you don't usually see in records. How did you get that?

At any rate, DFSORT doesn't have any built-in functions to do that kind of unusual conversion. You could write a simple E15 exit to do the conversion.
_________________
Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
Back to top
View user's profile Send private message Send e-mail Visit poster's website
semigeezer
Supermod


Joined: 03 Jan 2003
Posts: 1014
Topics: 13
Location: Atlantis

PostPosted: Tue May 15, 2007 11:25 am    Post subject: Reply with quote

THis is a good candidate for using Rexx. See the x2c function
Back to top
View user's profile Send private message Visit poster's website
waitling
Beginner


Joined: 12 Dec 2006
Posts: 15
Topics: 3

PostPosted: Fri May 18, 2007 12:11 pm    Post subject: Reply with quote

many thanks!
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 -> Utilities 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