transform Hexadecimal into Binary
Teradata Teradata Discussion Forums Teradata.com Discussion Forum
Visit Teradata.com
Home       Guidelines    Member List
Welcome Guest ( Login | Register )
        


This online forum is for user-to-user discussions of Teradata products, and is not an official customer support channel for Teradata. If you require direct assistance, please contact Teradata support.


transform Hexadecimal into Binary Expand / Collapse
Author
Message
Posted 5/23/2008 3:14:11 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 5/26/2008 11:33:20 AM
Posts: 1, Visits: 10
Release:V2R6.1

We have data in a Teradata table with a data type of VARCHAR(322) CHARACTER SET LATIN NOT CASESPECIFIC

For example, the following:
0B886091F4B04FF6038D6C7E6F001BBC00FF98C964000000.XXXX

This represents hexadecimal values.
The dot, '.', in the above example represents/would be expanded to 64 zeros.
The 'X' is expanded to 16 zeros.

Need to translate this example into a binary representation and land it in another Teradata table.

Is there a UDF which would handle the transformation?

What has been accomplished so far is to use XI2 to get into a decimal format.
ie. to transform "F" , use select 'F'XI2;

Looking forward to your reply. Thank you.


My Best Regards, A Thankful Listener.
Post #11589
« Prev Topic | Next Topic »


Reading This Topic Expand / Collapse
Active Users: 2 ( 2 guests, 0 members, 0 anonymous members )
No members currently viewing this topic.


All times are GMT -5:00, Time now is 4:02pm

Powered By InstantForum.NET v4.1.4 © 2008
Execution: 0.141. 9 queries. Compression Disabled.