I have got the SAS re-installed in my personal laptop. Earlier when I used to open a new file whether it is a SAS data file or a SAS code, they used to open in separate windows. However, now when I open any kind of SAS files, all the files get clubbed under one window and within the process flow as shown in the attached screenshot. This makes it quite difficult to see these different files separately or at the same time. Could anyone please help me resolve this issue? Thanks
Okay, that's what I thought.
The command to open the files into EG looks like this, and is configured in the Windows registry:
"C:\Program Files\SASHome\SASEnterpriseGuide\8\seguide.exe" /openfile:"%1"
If you change the command to remove the "/openfile", each invocation will open a new EG session instead.
"C:\Program Files\SASHome\SASEnterpriseGuide\8\seguide.exe" "%1"
It looks like you are using EG 7.1 in this screenshot, but EG 8.1 and later offers much better window management. Is it possible that the reinstall put a back-level version of SAS Enterprise Guide on your machine?
Thanks Chris for the response. I dont think my University has the license to upgrade to 8.1. However, this issue was not there when the same version was installed earlier. The issue has come up since the SAS EG has been reinstalled in my new laptop. It is now impossible to see the two files in parallel 😞
No special license is needed for EG 8.1 -- anyone with EG can update to this.
However, maybe your question is about what happens when you double-click on a .SAS file? By default EG would open a .SAS file into an existing EG session if there is already one opened. But is your problem that new EG sessions are opening each time? Or -- maybe -- that's the behavior you want instead of the default to open into existing EG sessions?
Sorry Chris if I am not able to explain the issue clearly. When I click any SAS file - whether it is a code (.SAS) or any SAS dataset (.sas7bdat), all these opens into an existing EG session if there is already one opened and get stacked into the existing process flow. I want to open every new file as a separate window so that I can easily switch (or view) these different file by simply using windows shortcut of Alt + Tab. From the Windows OS perspective, there is always only one file opened and if I simply close that file, I essentially end up closing all the files which I opened as those got opened within single session.
Okay, that's what I thought.
The command to open the files into EG looks like this, and is configured in the Windows registry:
"C:\Program Files\SASHome\SASEnterpriseGuide\8\seguide.exe" /openfile:"%1"
If you change the command to remove the "/openfile", each invocation will open a new EG session instead.
"C:\Program Files\SASHome\SASEnterpriseGuide\8\seguide.exe" "%1"
Many many thanks Chris. It worked.
Hi Chris,
Sorry for bothering you again on this.
While the solution you offered worked but I think it worked partially. So, when i open a code file (.sas) file first and then open any other dataset, then I face the same issue. However, if I open the dataset file first and then open the sas code file, then SAS code file remain opened as a separate windows file but then if I open another dataset file, it gets open within the processflow of the previous dataset file only (and not open as a separate windows file). Request your help here.
Thanks,
Saurabh
You'll need to make a similar change for the SAS.DataSet entries in the Windows Registry:
HKEY_CLASSES_ROOT\SAS.DataSet.701\shell\BrowsewithEG.8\command
Remove the "/openfile" part of the commands. The /openfile directive will reuse an existing EG session if one is running.
To me the next question(s) would be how to have the file options (right click and select) "open in active session" and "open in new session" so both behaviors would be available if desired.
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.
Ready to level-up your skills? Choose your own adventure.