1

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.

78282219
  • 593
  • 5
  • 21
  • If the problem is editing the .cfg-file and you have administrator rights on your computer: try to copy the file to somewhere on your PC where you have writing rights (e.g. Desktop). Then edit the file, save and then paste it back into the program files folder. – Therkel Aug 06 '18 at 12:15
  • Looks like I don't have administrator rights – 78282219 Aug 06 '18 at 12:28
  • Is the "access denied" error from your OS or from the product? What OS are you running on? – halfer Aug 06 '18 at 12:32
  • I'm running windows and I don't have admin rights – 78282219 Aug 06 '18 at 12:37
  • Are you sure that you don't already have a command to start SAS with UTF-8 support? When my company installed SAS it created multiple commands (icons) in the start menu. Including "SAS 9.4 (English)" and "SAS 9.4 (Unicode)". – Tom Aug 06 '18 at 13:40
  • 1
    amazing , just found SAS with Unicode support – 78282219 Aug 06 '18 at 14:13

1 Answers1

2

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.

DomPazz
  • 12,415
  • 17
  • 23