We just installed Enterprise Guide 7.15 HF2 (7.100.5.6112) (64-bit) on WINDOWS 10. When first installed .. if user double-clicked .sas program file it would open new EG if not open. Subsequent .sas double clicks would open program in the then-current Enterprise Guide .
We later came along and installed sas universal viewer
This changed DEFAULT behaviour to open .SAS in the Universal Viewer 1.42.
A user changed back to "Open with" Sas Enterprise Guide.
NOW everytime user double-clicks .SAS a NEW SAS Enterprise Guide session launches... regardless of whether or not one is already open.
How can we change default .SAS double click to recognize when Sas Enterprise Guide is ALREADY open, and just use that sesssion?
Please help. Thank you!
Hi @shwms,
Double-clicking a file (ex. .sas) has the same effect as right-clicking it and selecting the Open command on the context menu. The shell commands for .sas files are located here in the Windows registry:
HKEY_CLASSES_ROOT\SAS.Program.701\shell
The default Open command is located here:
HKEY_CLASSES_ROOT\SAS.Program.701\shell\Open\command
The default value is:
"C:\Program Files\SASHome\SASEnterpriseGuide\7.1\SEGuide.exe" /openfile:"%1"
If you want a file to be opened in the same/existing EG session, the command must include the “openfile” parameter, as it is above. If you want a file to be opened in a new EG session, the command should not include the “openfile” parameter, like so:
"C:\Program Files\SASHome\SASEnterpriseGuide\7.1\SEGuide.exe" "%1"
So, check your Windows registry and make sure that the SEGuide.exe command that is being executed when you double-click the .sas file contains the openfile parameter as in the example above.
Casey
ps- As I alluded to earlier, there can be additional .sas shell commands here in the registry:
HKEY_CLASSES_ROOT\SAS.Program.701\shell
So, if you are using the "Open with..." context menu items, rather than the default Open or double-click, it may be using those associated commands instead. Check those commands in the registry as well and make sure they are passing the openfile parameter.
Register today and join us virtually on June 16!
sasglobalforum.com | #SASGF
View now: on-demand content for SAS users
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.
Find more tutorials on the SAS Users YouTube channel.