Matt
Matt

Reputation: 21

How can I convert a column of Hex into text in SAS?

I have a column of raw text that is formatted as $hex2500. in SAS. How would I convert this data back into a long character string?

EDIT: My data is saved like this: 54484953204953204558414d504c452044415441210d0a

Upvotes: 1

Views: 2982

Answers (1)

Matt
Matt

Reputation: 21

I found the answer to this:

DATA NEW_DATA;
SET OLD_DATA;
text_formatted_string = INPUT(hex_formatted_string, $hex2500.);
RUN;

Upvotes: 1

Related Questions