Search code examples
encodingutf-8sassas-studio

change SAS encoding to utf-8


I am struggling greatly with changing my SAS session to utf-8.

I have tried changing the cfg file - sasv9.cfg; however, I am told that access is denied

I have tried using the encoding option; however, it says I must apply this on start-up, I tried restarting SAS and entering it then, still no luck.

I have tried the locale function; however, it returns an invalid command warning.

I am pretty stuck here. I am using SAS base9.4 and I have tried to follow multiple different threads but cannot find a solution.


Solution

  • Copy the sasv9.cfg file from the location you do not have write access to a place you do (i.e. your Documents folder). Change the encoding in there.

    Start SAS on the command line with -CONFIG "C:\path\to\cfg\sasv9.cfg"

    That should force SAS to start the session with the new config file and the specified encoding.