<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: limit to users use SAS EG with just 2 session in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/limit-to-users-use-SAS-EG-with-just-2-session/m-p/498288#M14403</link>
    <description>&lt;P&gt;On a UNIX system, I have this in Lev1/SASApp/WorkspaceServer/WorkspaceServer_usermods.sh:&lt;/P&gt;
&lt;PRE&gt;LIMIT=4

COUNT=`ps -ef|grep bridge|grep spawned|grep $USER|wc -l`

if [[ $COUNT -gt $LIMIT ]]
then
  exit 1
fi
&lt;/PRE&gt;
&lt;P&gt;Since the ps line in itself will appear in the result of the grep's, the COUNT value has to be incremented by 1, so this script code tests for a maximum of three workspace server sessions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have no idea if you can find similar useful tools on a toybox (Windows).&lt;/P&gt;</description>
    <pubDate>Mon, 24 Sep 2018 06:19:40 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2018-09-24T06:19:40Z</dc:date>
    <item>
      <title>limit to users use SAS EG with just 2 session</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/limit-to-users-use-SAS-EG-with-just-2-session/m-p/497572#M14380</link>
      <description>&lt;P&gt;&lt;SPAN&gt;good day, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I need to manage the SAS Enterprise Guide users, each user can open only 2 sessions, but I do not know how it could be administered.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have SAS 9.4 on the Windows 2012 server Company Guide 7.1 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Sep 2018 21:26:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/limit-to-users-use-SAS-EG-with-just-2-session/m-p/497572#M14380</guid>
      <dc:creator>ahernandezs</dc:creator>
      <dc:date>2018-09-20T21:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: limit to users use SAS EG with just 2 session</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/limit-to-users-use-SAS-EG-with-just-2-session/m-p/497584#M14381</link>
      <description>&lt;P&gt;There is no functionality in SAS to limit the number of simultaneous SAS sessions that I am aware of. This would have to happen at the OS level.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Sep 2018 22:11:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/limit-to-users-use-SAS-EG-with-just-2-session/m-p/497584#M14381</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2018-09-20T22:11:32Z</dc:date>
    </item>
    <item>
      <title>Re: limit to users use SAS EG with just 2 session</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/limit-to-users-use-SAS-EG-with-just-2-session/m-p/497798#M14385</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I presume (wrongly, perhaps ?) that you want to enable a &lt;EM&gt;&lt;STRONG&gt;quota&lt;/STRONG&gt;&lt;/EM&gt; of&amp;nbsp; number of sessions per user : 2 ongoing sessions maximum per each user. Presently you have no quota and each user can launch as many sessions as he likes, which is the defaut behaviour of as SAS 9 platform with SAS Enterprise Guide (or Add-In, or SAS Studio).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A former colleague once tipped me about how to implement such a rule, it involves a modification of the kind of Metadata server object you have. I cannot remember if I have ever tested this trick so this remains to be thoroughly tested. It might not work at all.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you don't have a strong knowledge (or the impulse to aquire one) of SAS Metadata then it's going to be difficult somehow.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here are the &lt;EM&gt;main&lt;/EM&gt; ingredients to make the cake, this list is not comprehensive :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Convert your standard Logical Workspace Server to a Load Balancing one&lt;/P&gt;
&lt;P&gt;2. Change the Cost parameters of the Logical LB Workspace Server and the underlying Workspace Server (Options &amp;gt; Advanced &amp;gt; Performance) in order to have quota restricted to 2 sessions maximum per user&lt;/P&gt;
&lt;P&gt;3. [ You might have to create in Metadata a duplicate Server object (the last level under 'Workspace Server') ]&lt;/P&gt;
&lt;P&gt;4. Enable a higher level of Object Spawner log verbosity , change your parameters set (2.) iteratively and check if this works.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In theory, a pooled workspace would be simpler but Clients like SAS EG as far as I know cannot use these kind of multi-sessions pooled servers to tun a SAS session (?).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;HTH&lt;/P&gt;</description>
      <pubDate>Fri, 21 Sep 2018 12:54:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/limit-to-users-use-SAS-EG-with-just-2-session/m-p/497798#M14385</guid>
      <dc:creator>ronan</dc:creator>
      <dc:date>2018-09-21T12:54:26Z</dc:date>
    </item>
    <item>
      <title>Re: limit to users use SAS EG with just 2 session</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/limit-to-users-use-SAS-EG-with-just-2-session/m-p/498288#M14403</link>
      <description>&lt;P&gt;On a UNIX system, I have this in Lev1/SASApp/WorkspaceServer/WorkspaceServer_usermods.sh:&lt;/P&gt;
&lt;PRE&gt;LIMIT=4

COUNT=`ps -ef|grep bridge|grep spawned|grep $USER|wc -l`

if [[ $COUNT -gt $LIMIT ]]
then
  exit 1
fi
&lt;/PRE&gt;
&lt;P&gt;Since the ps line in itself will appear in the result of the grep's, the COUNT value has to be incremented by 1, so this script code tests for a maximum of three workspace server sessions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have no idea if you can find similar useful tools on a toybox (Windows).&lt;/P&gt;</description>
      <pubDate>Mon, 24 Sep 2018 06:19:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/limit-to-users-use-SAS-EG-with-just-2-session/m-p/498288#M14403</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-09-24T06:19:40Z</dc:date>
    </item>
    <item>
      <title>Re: limit to users use SAS EG with just 2 session</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/limit-to-users-use-SAS-EG-with-just-2-session/m-p/498323#M14408</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;'s suggestion is a very good one. I've had to implement something like this before and his script will do the trick. Although not for Windows, the concept is identical.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Maybe just two additional points to note.....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1.) Ensure that proper housekeeping is maintained to ensure that no orphan processes are counted towards a user's quota&lt;/P&gt;
&lt;P&gt;2.) There are usually underlying reasons why this get implemented. I would suggest you closely look at these and determine if this solution is the best. This method can be&amp;nbsp;fairly disruptive to the users, so use with caution. A very common disagreement is a user saying he/she has x sessions and the script is counting y&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Sep 2018 09:06:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/limit-to-users-use-SAS-EG-with-just-2-session/m-p/498323#M14408</guid>
      <dc:creator>nhvdwalt</dc:creator>
      <dc:date>2018-09-24T09:06:24Z</dc:date>
    </item>
    <item>
      <title>Re: limit to users use SAS EG with just 2 session</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/limit-to-users-use-SAS-EG-with-just-2-session/m-p/498343#M14409</link>
      <description>&lt;P&gt;In my case, it was the result of a user who used to open a separate EG instances for every program that he ran. His Windows task bar was so incredibly cluttered that you could see no more than the left half of each icon. And when one day I found 32(!) concurrent workspace server sessions for that particular user, I pulled the emergency brake and implemented the above logic.&lt;/P&gt;
&lt;P&gt;Needless to say, next day I had a phone call from him, complaining about it. Told him that &lt;EM&gt;I&lt;/EM&gt; worked under the same restrictions, and that he could open lots of code windows in one EG without problem. Never heard about it again.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Aside from the overhead caused by multiple processes, also consider to implement a user-based quota system for your shared resources (WORK!). With that, no single user can wreck the day for everybody else by consuming all the work space.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Sep 2018 10:43:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/limit-to-users-use-SAS-EG-with-just-2-session/m-p/498343#M14409</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-09-24T10:43:07Z</dc:date>
    </item>
    <item>
      <title>Re: limit to users use SAS EG with just 2 session</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/limit-to-users-use-SAS-EG-with-just-2-session/m-p/569478#M16617</link>
      <description>&lt;P&gt;this is great one ....&amp;nbsp;&lt;/P&gt;&lt;P&gt;is there a way in unix to limit batch jobs ? I mean user who kicks off jobs just with nohup sas ?&lt;/P&gt;&lt;P&gt;see red highlighted below - users write ksh script and schedule them in scheduler - and the script have "nohup sas sascode.sas" statements..!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/local/home/sasadm&amp;gt;ps -ef | grep marprod&lt;BR /&gt;marprod 7799002 22611710 0 11:01:10 - 0:00 sasels 7 4 8 2 f7346&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;marprod 28508336 2950762 0 09:00:00 - 0:00 ksh /local/home/marprod/scripts/ref_id_perm_data.ksh&lt;/FONT&gt;&lt;BR /&gt;marprod 35651712 4915948 0 09:00:46 - 0:00 sasels 7 4 8 2 649ec&lt;BR /&gt;marprod 23069066 33358530 0 10:00:05 - 0:00 sasels 7 4 8 2 11799c&lt;BR /&gt;sasadm 35783084 7603956 0 15:02:50 pts/1 0:00 grep marprod&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;marprod 4915948 28508336 1 09:00:19 - 20:46 /sasgrid/SASBASEP/SAS_94/SASFoundation/9.4/sasexe/sas -batch -noterminal -nogwindow /local/home/marprod/code/Ref_id_perm_data.sas&lt;/FONT&gt;&lt;BR /&gt;marprod 28181236 2950762 0 08:30:00 - 0:00 ksh /local/home/marprod/scripts/DlyNewAcct_frcst.ksh&lt;BR /&gt;marprod 33358530 2950762 0 10:00:01 - 13:18 /sasgrid/SASBASEP/SAS_94/SASFoundation/9.4/sasexe/sas -batch -noterminal -nogwindow /local/home/marprod/code/MARK/Retention_Call_Trck_Daily.sas -log /local/home/marprod/code/MARK/Retention_Call_Trck_Daily.log&lt;BR /&gt;marprod 33358992 28181236 19 08:30:57 - 27:25 /sasgrid/SASBASEP/SAS_94/SASFoundation/9.4/sasexe/sas -batch -noterminal -nogwindow /local/home/marprod/code/DlyNewAcct_new_dailymm.sas&lt;BR /&gt;marprod 13108924 13895246 0 15:02:27 - 0:00 ksh /local/home/marprod/scripts/jetblue_daily.ksh&lt;BR /&gt;marprod 13174480 13108924 0 15:02:27 - 0:00 /usr/bin/ksh /local/home/marprod/scripts/at_submit.ksh /local/home/marprod/scripts/jetblue_daily.ksh 10&lt;BR /&gt;marprod 13895246 2950762 0 15:02:26 - 0:00 ksh&lt;BR /&gt;marprod 22611710 2950762 18 11:00:00 - 12:44 /sasgrid/SASBASEP/SAS_94/SASFoundation/9.4/sasexe/sas -batch -noterminal -nogwindow /local/home/marprod/code/MARK/elite_calls.sas -log /local/home/marprod/code/MARK/elite_calls.log&lt;BR /&gt;marprod 22742762 33358992 0 08:31:03 - 0:00 sasels 7 4 8 2 fc00a&lt;BR /&gt;marprod 24512238 13174480 0 15:02:27 - 0:00 sleep 28&lt;BR /&gt;marprod 34146016 2950762 0 13:01:00 - 12:40 /sasgrid/SASBASEP/SAS_94/SASFoundation/9.4/sasexe/sas -batch -noterminal -nogwindow /local/home/marprod/code/MARK/intercept_seed.sas -log /local/home/marprod/code/MARK/intercept_seed.log&lt;BR /&gt;marprod 37488276 34146016 0 13:01:00 - 0:00 sasels 7 4 8 2 fe076&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2019 15:05:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/limit-to-users-use-SAS-EG-with-just-2-session/m-p/569478#M16617</guid>
      <dc:creator>Go</dc:creator>
      <dc:date>2019-06-27T15:05:21Z</dc:date>
    </item>
    <item>
      <title>Re: limit to users use SAS EG with just 2 session</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/limit-to-users-use-SAS-EG-with-just-2-session/m-p/569486#M16618</link>
      <description>&lt;P&gt;You can only implement that in the shell scripts SAS has in the configuration tree, but you can't guard against direct calls of the SAS executable.&lt;/P&gt;
&lt;P&gt;So you need to do that from the operating system, by using a workload manager or simply by limiting the number of concurrent processes for a single user.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2019 15:17:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/limit-to-users-use-SAS-EG-with-just-2-session/m-p/569486#M16618</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-06-27T15:17:58Z</dc:date>
    </item>
    <item>
      <title>Re: limit to users use SAS EG with just 2 session</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/limit-to-users-use-SAS-EG-with-just-2-session/m-p/569530#M16619</link>
      <description>Are you referring to ulimit ?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If yes - can I make exception list on ulimit settings ? you know excluding critical production accounts?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 27 Jun 2019 16:30:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/limit-to-users-use-SAS-EG-with-just-2-session/m-p/569530#M16619</guid>
      <dc:creator>Go</dc:creator>
      <dc:date>2019-06-27T16:30:29Z</dc:date>
    </item>
    <item>
      <title>Re: limit to users use SAS EG with just 2 session</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/limit-to-users-use-SAS-EG-with-just-2-session/m-p/569535#M16620</link>
      <description>&lt;P&gt;In AIX, I can set such limits per user.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2019 16:45:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/limit-to-users-use-SAS-EG-with-just-2-session/m-p/569535#M16620</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-06-27T16:45:28Z</dc:date>
    </item>
    <item>
      <title>Re: limit to users use SAS EG with just 2 session</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/limit-to-users-use-SAS-EG-with-just-2-session/m-p/569541#M16621</link>
      <description>Wonderful , if it's not too much to ask , do you have link that you can share, we are AIX actually !&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 27 Jun 2019 17:16:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/limit-to-users-use-SAS-EG-with-just-2-session/m-p/569541#M16621</guid>
      <dc:creator>Go</dc:creator>
      <dc:date>2019-06-27T17:16:29Z</dc:date>
    </item>
    <item>
      <title>Re: limit to users use SAS EG with just 2 session</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/limit-to-users-use-SAS-EG-with-just-2-session/m-p/569616#M16622</link>
      <description>&lt;P&gt;Some batch schedulers have settings to be able to limit the number of batch jobs that can run simultaneously. I know LSF has this. The nice thing is if you reach the limit, then the remaining batch jobs are just queued until active jobs finish, then the queued jobs will start automatically.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2019 20:12:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/limit-to-users-use-SAS-EG-with-just-2-session/m-p/569616#M16622</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2019-06-27T20:12:44Z</dc:date>
    </item>
    <item>
      <title>Re: limit to users use SAS EG with just 2 session</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/limit-to-users-use-SAS-EG-with-just-2-session/m-p/569820#M16625</link>
      <description>We have grid, our setup is EG uses grid .. but users will not use sasgsub... we are not fully conveyed users to use sasgsub... couple of reasons.... 1. Users did not want to change their code when cutover to grid happened &amp;amp; 2. We don't want production jobs to talk to metadataserver...&lt;BR /&gt;&lt;BR /&gt;Anyway users have putty access, so they just login and kick off sas executable ... and also ksh scripts with sasexecutables inside it .. so there is no scheduler or lsf involved here&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 28 Jun 2019 14:06:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/limit-to-users-use-SAS-EG-with-just-2-session/m-p/569820#M16625</guid>
      <dc:creator>Go</dc:creator>
      <dc:date>2019-06-28T14:06:19Z</dc:date>
    </item>
    <item>
      <title>Re: limit to users use SAS EG with just 2 session</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/limit-to-users-use-SAS-EG-with-just-2-session/m-p/570011#M16630</link>
      <description>&lt;P&gt;In many SAS Grid installations LSF is the underlying scheduler. You don't have to run this from GSUB. It is available via Schedule Manager in SAS Management Console. Personally I don't get it why so many SAS users resort to command line stuff when there is a perfectly good point and click interface available.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also there is no reason why your batch and online SAS environments should be different. Ours aren't and that means absolutely no code changes are required whatever environment we run our SAS code in.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't understand why you don't want to use your metadata server in Production. The whole point of leveraging metadata use is to keep your SAS environments consistent, and minimizing the use of coded LIBNAMES - it is much more productive and less prone to error this way.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2019 22:25:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/limit-to-users-use-SAS-EG-with-just-2-session/m-p/570011#M16630</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2019-06-28T22:25:15Z</dc:date>
    </item>
  </channel>
</rss>

