BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
Jean-Jacques
Obsidian | Level 7

My workplace just replaced my computer and installed SAS on the new one, but somehow failed to set file associations, so that Windows does not automatically chose SAS to open .sas files, or .sas7bdat files. 
What is the name and location of the SAS system handler that normally starts when clicking on a .sas file? 

Associating sas.exe with .sas files  does not open the program in the editor as in a default install. 

Thanks for the tip!

1 ACCEPTED SOLUTION
10 REPLIES 10
JuanS_OCS
Amethyst | Level 16
Generally, association via “Open with” then "another app" from your contextual menu should do the trick. Or with the SAS Deployment Manager installed on your machine.

Alternatively:

* via Apps then Default Apps
* Or, more technical, via your registry editor in HKEY_CLASSES_ROOT
sajjad1122
Fluorite | Level 6
To correctly associate .sas files with the SAS editor, you should link them to the SAS File Type Identifier (typically sasuser.exe) rather than directly associating them with sas.exe. The correct handler for opening .sas files is often located in the directory where SAS was installed, usually something like:

C:\Program Files\SASHome\SASFoundation\9.x\sasuser.exe

You can try manually associating .sas and .sas7bdat files with this executable through Windows settings for file associations.
https://tglinkhub.com/
FreelanceReinh
Jade | Level 19

Hello @Jean-Jacques,

 

I think you mean 

 

C:\Program Files\SASHome\SASFoundation\9.4\core\sasexe\sasoact.exe

See page 4 of the SAS GF 2013 paper "Double-Clicking a SAS® File: What Happens Next?".

 

Jean-Jacques
Obsidian | Level 7

Freelance Reinh has come closest to a solution so far. 
The SAS Global Forum 2013 paper referenced describes the underlying mechanics in great detail but the solutions it offers are now obsolete.
Here is what I have tried, following the paper. 
1. The SAS file Type Management no longer exists. It would be the best solution, so if anyone knows of an equivalent, that would be very good.
2. Editing the registry directly is not possible since I work in an organization that does not give me admin access to my computer. In addition, our IT support can do simple troubleshooting, but will not touch the registry.
3. I associated .sas files with SASOACT.exe, which is the least preferred solution in the paper, but is the only one available to me. This correctly launches the SAS environment when double-clicking a .sas file, but surprisingly the program does not open in the editor. 

Quentin
Super User

The tech support link from @RobH looks like it should help.

 

But I checked my Win10 PC, and the registry key in the paper looks like:

Quentin_0-1730818630402.png

When I double click a .sas file, it opens  in Display Manager (PC SAS).  9.4M7

 

The Boston Area SAS Users Group is hosting free webinars!
Next webinar will be in January 2025. Until then, check out our archives: https://www.basug.org/videos. And be sure to subscribe to our our email list.
FreelanceReinh
Jade | Level 19

Personally, I don't want to start a full SAS session if I just want to browse an old program, dataset or output. Therefore, I have associated the .sas, .sas7bdat and .lst file types with the SAS Universal Viewer (see https://support.sas.com/downloads/browse.htm?fil=&cat=74 -- it is not installed by default).

 

To open a .sas file in a SAS session for editing or execution, I almost always find it in the list of (20) most recently opened programs, which is available in the drop-down menu of the file name field in the "Open" dialog. (Same for .log files, which appear on a separate list after switching the file type to .log in the dialog.) Even if a program is not in the list, it can often be found quickly, e.g., by editing one of the existing list items to something like C:\appropriate\parent\folder\*.sas (i.e., using the asterisk wildcard character).

 

There is also a separate list of "Recent Files" in the File menu, which can be customized (via Tools → Options → Preferences → General) to contain up to 30 items.

Jean-Jacques
Obsidian | Level 7
I can see why someone might prefer it that way. I think it is in fact one of the options when installing SAS. I personally don't prefer it.
I like being able to double-click and open into the SAS environment. One advantage is that that sets the folder in which the .sas file is stored as the work directory.
Jean-Jacques
Obsidian | Level 7

RobH SAS Employee' solution is the correct answer. 
It requires admin access, which I do not have, but it outlines steps that my organization IT's is able and willing to follow. 
Thanks all!

suga badge.PNGThe SAS Users Group for Administrators (SUGA) is open to all SAS administrators and architects who install, update, manage or maintain a SAS deployment. 

Join SUGA 

Get Started with SAS Information Catalog in SAS Viya

SAS technical trainer Erin Winters shows you how to explore assets, create new data discovery agents, schedule data discovery agents, and much more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 10 replies
  • 1473 views
  • 4 likes
  • 7 in conversation