SAS Programming

DATA Step, Macro, Functions and more
BookmarkSubscribeRSS Feed
igjarjuk
Calcite | Level 5

Hello,

 

I have created a SAS dataset with a value that contains a UTF8 encoded string.  How can I verify that the data has come across correctly?  I have tried to open the SAS dataset in the

SAS Universal Viewer

Release 9.4 - SEP 2014

 

but it only renders the squares that indicate the character is missing in the current font.

 

I am using the Universal Viewer because our licensed version on linux does not display unicode. All I can see is the strange garbled sequence of accented A's and such.

 

If there is no way to visually inspect that the unicode data is correctly encoded is there any procedure you would recommend to validate the data has come across correctly?

 

Thanks,

sJared

2 REPLIES 2
Tom
Super User Tom
Super User

Make sure that you are running SAS with Unicode support.  Your admin might need to make a new command for you to use that points at the proper configuration file.

 

Even with that I suspect that your issue is with Display Manager on Unix.

You could instead use SAS/Studio and it would allow you to open a dataset in a pseudo interactive mode with Unicode support.

 

Or  just use ODS HTML (or PDF) and print the data and then open the report.

igjarjuk
Calcite | Level 5

Sorry, I should have been a little clearer.  I used the SAS Universal view on Windows because I know unix windowing isn't the best for supporting unicode.  Is that also expected not to work?

 

When you say SAS with Unicode support you mean the executable thats named sas_u8 right?

 

Would the ODS output also be dependent on creating it from a SAS with Unicode support session?

 

Can you give an example procedure that should ensure a utf8 compatible font is used for PDF output? I think this would be sufficient for my validation purposes.

sas-innovate-white.png

Special offer for SAS Communities members

Save $250 on SAS Innovate and get a free advance copy of the new SAS For Dummies book! Use the code "SASforDummies" to register. Don't miss out, May 6-9, in Orlando, Florida.

 

View the full agenda.

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 776 views
  • 0 likes
  • 2 in conversation