The link below has the instruction for disabling Concurrent Logon Sessions for Web Applications. Is it possible to do the same for EG? If so, is there any link or document related to it?
SAS(R) 9.3 Intelligence Platform: Middle-Tier Administration Guide, Third Edition
Does anybody have knowledge about this question ?
I have customized the startup script that is called by the spawner when a workspace session is launched.
(/...../WorkspaceServer_usermods.sh)
It checks for similar processes run by the same user, and if a certain number of lines is exceeded, terminates without starting SAS.
See here:
LIMIT=4
COUNT=`ps -ef|grep bridge|grep spawned|grep $USER|wc -l`
if [[ $COUNT -gt $LIMIT ]]
then
#document the fact in the user's home directory in a log file
date >> $HOME/.limit.log
exit 1
fi
Nice solution!
The script as written won't work on Windows. The command "ps -ef" is a Unix only command. The equivalent command in Windows is tasklist. This command will get a list of currently executing SAS sessions:
tasklist /FI "IMAGENAME eq SAS.EXE" /V
The list contains user names which could be filtered further. I'll leave it up to you to investigate further. I'm sure you have IT experts in your organisation that could script a solution. If it involves different hosts then that is going to be tricky...
I am not weighing in on this much, just that Windows can run a lot of unix scripts. It has a unix subsystem (Windows Subsystem for Linux (WSL)). That said, PowerShell should be able to handle this w/o any issues. Process lists are pretty standard in the .NET world. I use them a lot. A quick search showed Get-Process. Either a script or PowerShell should work with similar logic.
When you can get your hands on the EGUIDE profile.... 51225 - How to set the number of parallel processes that SAS® Enterprise Guide® can execute
Would advice Kurts approach . As I see Chris is a liking that one also I am getting hope this kind of approaches are getting accepted by SAS (often being blocked).
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.