SAS / Stata integration

Hi I am a heavy user of SAS (and Stata) for data analysis and have found Cursor very efficient in writing new code. I am able to install the SAS syntax package and connect local SAS software with Cursor. However, I find it difficult to fully use SAS inside Cursor for the following reasons:

  1. Output window keeps popping up in the panel below and seems to not be able to update in a stand-alone panel/window. My compromise is to move it to the right but it takes space on my monitor.
  2. Result window constantly fails to update results from new code executions. I feel like there is sth incorrect about my setup. Hope someone can help me out.
  3. Code submission within Cursor requires some time for “Connecting to SAS” and does not show an alert for job completion.
  4. Log syntax is plain text without any highlighting on errors/warnings and can be difficult to read.

I currently use Sublime Text 3 to code SAS and Stata. The issues above are taken care of in Sublime but the AI/autocomplete functions in Cursor is really awesome and time/energy-saving. So I currently will write new code in Cursor and test them in Sublime. If anyone knows better, I would really appreciate letting me the solutions to those above.

1 Like

Hi I would like to use SAS in cursor as well. Could you provide instructors or steps how you added the SAS syntax and integration with local SAS console? Thank you very much

Hi, happy to help. I started by openning a sas file, and Cursor hinted me to install the official SAS syntax extension. I assume you already did the same. Next, you need to configure the SAS extension following the steps in the extension description: create a profile, set it to local if you run SAS on your computer like me (and if you have SAS intalled, then you should have ITCLIENT ready without any further steps), and restart Cursor to let the change become effective. You should see the bottom left corner like in this screenshot and a “run” icon on the top right corner. An additional step is to go to Settings - Configure Keyboard Shortcuts to make sure the shortcut for running the program is unique (I am used to Ctrl+B as in Sublime Text).

However, given all these said, I still have not figured how to make Cursor as smooth as Sublime text in terms of showing output and disciplining log. Let me know if you find any solutions.

1 Like

Hi Sir, I got the SAS to work with Cursor. I am not using Sublime, just the text editor that is built-in the Cursor by default.

  1. yes, my output works in the output window at the bottom. What do you mean about the stand-alone output panel/window (From SAS?) Do you have a picture of your setup?

  2. my results window pops up in Cursor. Are you talking about the SAS results window? could you show a picture of your set up?

  3. i don’t encounter this issue with the default editor, maybe it’s a sublime issue? I don’t get an alert for job completion either.

  4. yes i agree, i have this issue.

1 Like

Hi rwat128,

Thanks for your reply.

  1. I want, every time I run a new code, I can get the output in a new editor window, instead of the panel below.
  2. Mine will pop up the first time a code is run but often won’t pop up later. This is bit annoying and the main reason I just code in Cursor and run in Sublime Text.
  3. An alert is just convenient for reminding me that the job is done.
  4. Hope there could be a new package for highlighting log syntax, like warnings and errors in a different color.

Thanks for your reply!