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!
Do you actually have a local SAS installed on your PC, or do you connect to a remote server with Enterprise Guide or SAS Studio?
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?".
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.
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:
When I double click a .sas file, it opens in Display Manager (PC SAS). 9.4M7
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.
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!
The SAS Users Group for Administrators (SUGA) is open to all SAS administrators and architects who install, update, manage or maintain a SAS deployment.
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.