Hello,
On a local SAS software, I am using SAS(Unicode) to work with a dataset. I am going to send this to a friend who only uses SAS-Studio. How the data can be opened in SAS-Studio? or how can we get the Unicode environment in SAS-Studio?
Thanks
In SAS studio just change the SAS Workspace server that you are using to one that is defined to run using UTF-8 encoding.
If you do not see one available then check with your local SAS support to have on stood up for you to use.
SAS Studio uses Unicode (UTF-8) as its default setting, so you should have no problem sending it as is.
If your friend is using a different character encoding in SAS Studio, your friends can change it in Preference>Text encoding.
@japelin wrote:
SAS Studio uses Unicode (UTF-8) as its default setting, so you should have no problem sending it as is.
If your friend is using a different character encoding in SAS Studio, your friends can change it in Preference>Text encoding.
Sorry, but this is wrong. SAS-Studio assumes all text-files (including programs) are in UTF-8, but this doesn't mean, that the underlying app-server is setup to use unicode.
The following log was created using our local sas studio with the default app-server:
69 proc options option=encoding;run; SAS (r) Proprietary Software Release 9.4 TS1M5 ENCODING=WLATIN1 Specifies the default character-set encoding for the SAS session.
Thank you for letting me know!
I have only used SAS Studio with SAS ODA, so I did not know about it.
As already said SAS STUDIO uses UTF8 encoding.
UTF stands for: Unicode Transformation Format.
The 8 in UTF8 defines the input character length. It enables 2 bytes length too.
UTF16 enables up to 4 bytes length (I think it is used by Japanese, Chinese and some other languages)
In SAS studio just change the SAS Workspace server that you are using to one that is defined to run using UTF-8 encoding.
If you do not see one available then check with your local SAS support to have on stood up for you to use.
The menu I posted should be standard SAS/Studio, but the list of available SAS Workspace servers is what they should control.
So just ask them to give you access to run SAS with Unicode support (encoding='utf-8') and to explain to you how you can connect to it. How to do it they need to figure out. SAS will support them.
Hello,
I thought I share this here for those who may come to this post later.
In Sas-Studio, under More application options, we have an option for Character policy and we can select the Default text encoding and UTF-8 is an option.
Thanks
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.