Skip to content
Wei Wu edited this page May 30, 2022 · 12 revisions

Frequently Asked Questions

I don't see correct syntax colors on SAS code

Select File > Preferences > Color Theme and select a SAS provided theme.

How to get client ID/Secret?

SAS administrator can refers to this documentation for how to generate client IDs.

It took so long to run at first time

A new session must be created the first time you run SAS code. Connection time will vary depending on the server connection. Subsequent runs within the session should be quicker.

I got unable to verify the first certificate error when run

You will likely need to import your Viya server certificate into your local certificate store, as below steps:

  1. Obtain the root CA
  2. Import it into your local store. The steps vary across Operating Systems. Here's an instruction for Windows.

What's the expected format of the token file?

It expects a plain text file with any name and will read the whole content as access token.

I keep getting errors when run but I believe I've fixed it

Please specify the correct protocol. For example, if your Viya server is on https, make sure you included https:// in your Session: Host setting.

Please try click the Close current session button next to the Run button to reset your session. If it didn't help, try restart your VS Code.

Is there a way to assign a shortcut to run SAS code?

To manage shortcuts in VS Code, Click the "Manage" button from the left bottom and select Keyboard Shortcuts. Type "run sas" or so to filter and you'll see SAS Session: Run SAS code command and you can define shortcuts to it.

Clone this wiki locally