View previous topic :: View next topic |
Author |
Message |
jayram99 Beginner
Joined: 16 Aug 2004 Posts: 52 Topics: 21 Location: falls church.va,usa
|
Posted: Thu Jun 24, 2010 2:30 pm Post subject: Hexadecmial to Text Conversion |
|
|
Hi,
We have a column in Table stores values as Hexadecimal.
The Data is as below.
PART 1 VALUES (X'1600FFFFFFFFFFFFFFFFFFFFFFFFFFFF'),
PART 2 VALUES (X'3200FFFFFFFFFFFFFFFFFFFFFFFFFFFF')
Is there any way to read the above hexadecimal charectors in text format or covert to text format.
Appreciate your Help.
Jayaram |
|
Back to top |
|
|
papadi Supermod
Joined: 20 Oct 2009 Posts: 594 Topics: 1
|
Posted: Thu Jun 24, 2010 3:03 pm Post subject: |
|
|
x'FF' is not a valid "text" value.
Quote: |
The Data is as below.
PART 1 VALUES (X'1600FFFFFFFFFFFFFFFFFFFFFFFFFFFF'),
PART 2 VALUES (X'3200FFFFFFFFFFFFFFFFFFFFFFFFFFFF')
| Assuming this is the "input", what do you want for output? _________________ All the best,
di |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
|
|
Back to top |
|
|
jayram99 Beginner
Joined: 16 Aug 2004 Posts: 52 Topics: 21 Location: falls church.va,usa
|
Posted: Thu Jun 24, 2010 4:29 pm Post subject: |
|
|
Thanks Kolusu.
The table is having more than million records.
Can i do it using SORT utility after downloading the records from Table to a Seq File.
Regards,
Jayaram |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
|
Posted: Thu Jun 24, 2010 5:42 pm Post subject: |
|
|
jayram99,
Sort Products do NOT have any built-in functions to unhex. You need to write a program to do it. Search the application forum for cobol examples.
Kolusu |
|
Back to top |
|
|
|
|