New SAS User

Completely new to SAS or trying something new with SAS? Post here for help getting started.
BookmarkSubscribeRSS Feed
Coreyw184
Calcite | Level 5

I am having a few issues that started on Friday after I tried to run some code that failed. The code involved calling a .exe file using call system()

  • When I doubleclick a .sas file rather than opening in the SAS editor it now tries to run it in batch mode
  • When I right click and choose open with SAS 9.4 I get an error message saying: "Error: insufficient authorization to access C:\filepath" ( with the actual filepath)
    • Bizarrely if I open SAS then I am able to open the file within SAS with file>open program.

I have no idea how this change occurred based on the code I ran so any advice on how to restore default SAS behavior would be greatly appreciated.

4 REPLIES 4
Patrick
Opal | Level 21

1. Right click on one of your .sas files and select Properties from the menu.

2. Use the change button in the Properties window to navigate to the application you want the .sas file to open with.

Patrick_0-1731368446719.png

 

Coreyw184
Calcite | Level 5

Hi Patrick, thanks for the reply.

Sas is already set as the opens with option for .sas files for me.

Patrick
Opal | Level 21

@Coreyw184 wrote:

Hi Patrick, thanks for the reply.

Sas is already set as the opens with option for .sas files for me.


"When I doubleclick a .sas file rather than opening in the SAS editor it now tries to run it in batch mode"

If above still happens even with the .sas files being registered to open with SAS then you need to verify that what you're pointing to is not what runs it in batch. To be sure manually select the .exe that you want to run (it can also be a .lnk pointing to the .exe, just use the same than what you're using to start SAS on its own).

Patrick_0-1731443316431.png

 

From the looks of it the latest Windows update also broke a few links on my computer.

 

FreelanceReinh
Jade | Level 19

Hello @Coreyw184,

 

See also the suggestions in last week's thread What to set as default app for handling sas program files (.sas) in Windows, in particular the Knowledge Base article linked by RobH which solved the other user's problem.

sas-innovate-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

Register now!

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 4 replies
  • 953 views
  • 2 likes
  • 3 in conversation