When SAS was installed on my computer, the file associations were not created automatically. When I clicked on .sas files they didn't open in SAS at all.
I was able to right-click on a file and use "open with" to browse to Windows --> Program Files --> SASHome --> SASFoundation --> 9.4 and then selected "sas.exe" but that now just runs the files in batch mode when I double-click on them, instead of opening them in SAS to edit them.
I don't seem to have the Manage File Types utility installed on my computer, because it doesn't exist in the Start Menu SAS folder.
I'm running Windows 10.
Please tell me if there's another way to find out if I've got the Manage Files Utility installed, and also if there's another way I can set up .sas files to open in SAS windowing, without having to edit the registry?
Thanks
Louise
Running sas on-line or batch uses the same sas.exe program.
The difference is in options delivered to sas - either by sas configuration file (you may hold more than one) or in-line.
You can define a .bat file to run sas on-line with the appropriate options.
Hi Shmuel,
Thanks, I had suspected that was the case. Do you know if there's any way to change the Windows 'open with' to point at the config file as well as the sas.exe file?
Also, is the Manage File Types utility meant to still be part of SAS on Windows 10 i.e. is it a problem with my install that I don't have that on my computer?
Thanks
Louise
Hi @LFMcMillan, it was long years ago when I used sas on windows platform.
In a .bat file - i.e. a script file - the syntax will be something like:
<path>\sas.exe -<option1> -<option2> ...
Check your sas documentation for windows 10 environment:
Configuration file - I believe that can be found in same directory as the sas.exe program - is with .cfg suffix.
You may found both configurations ready in the directory, of course withe different names.
Sorry I can't help more.
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.