<?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: Determining session sizes on a server in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Determining-session-sizes-on-a-server/m-p/41282#M8455</link>
    <description>Why not use OS commands to do the work?  &lt;BR /&gt;
&lt;BR /&gt;
The DIR command in Windows has the options you need to get a report.  See&lt;BR /&gt;
&lt;A href="http://www.computerhope.com/dirhlp.htm#04" target="_blank"&gt;http://www.computerhope.com/dirhlp.htm#04&lt;/A&gt;&lt;BR /&gt;
You could use the ls command in *nix to get similar information.&lt;BR /&gt;
&lt;BR /&gt;
If you run it periodically as a scheduled task (cron), you could pipe the output to a file and then analyze the trends with SAS.</description>
    <pubDate>Tue, 30 Nov 2010 19:25:57 GMT</pubDate>
    <dc:creator>Doc_Duke</dc:creator>
    <dc:date>2010-11-30T19:25:57Z</dc:date>
    <item>
      <title>Determining session sizes on a server</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Determining-session-sizes-on-a-server/m-p/41281#M8454</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
We're having space issues on our server. As such, i'm trying to find out the size and owners of the sessions in the work directory on the server.&lt;BR /&gt;
&lt;BR /&gt;
The code I have at the moment is;&lt;BR /&gt;
&lt;BR /&gt;
&lt;PRE&gt;&lt;BR /&gt;
RSUBMIT ;&lt;BR /&gt;
&lt;BR /&gt;
filename workserv 'E:/saswork' ;&lt;BR /&gt;
&lt;BR /&gt;
data dirdata ;&lt;BR /&gt;
  did = dopen('workserv');&lt;BR /&gt;
    numberOfFiles=dnum(did);&lt;BR /&gt;
	  do i=1 to numberOfFiles;&lt;BR /&gt;
      filename=dread(did,i);&lt;BR /&gt;
    output;&lt;BR /&gt;
	end;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
ENDRSUBMIT ;&lt;BR /&gt;
&lt;/PRE&gt;&lt;BR /&gt;
&lt;BR /&gt;
This will create a data set with the names of the sessions. How would I add the owner of the sessions and the size?&lt;BR /&gt;
&lt;BR /&gt;
If I am going about this in the wrong way, please feel free to offer an alternative solution.&lt;BR /&gt;
&lt;BR /&gt;
As always, any help is greatly appreciated!&lt;BR /&gt;
&lt;BR /&gt;
Cheers,&lt;BR /&gt;
&lt;BR /&gt;
Fat Captain.</description>
      <pubDate>Tue, 30 Nov 2010 15:00:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Determining-session-sizes-on-a-server/m-p/41281#M8454</guid>
      <dc:creator>FatCaptain</dc:creator>
      <dc:date>2010-11-30T15:00:32Z</dc:date>
    </item>
    <item>
      <title>Re: Determining session sizes on a server</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Determining-session-sizes-on-a-server/m-p/41282#M8455</link>
      <description>Why not use OS commands to do the work?  &lt;BR /&gt;
&lt;BR /&gt;
The DIR command in Windows has the options you need to get a report.  See&lt;BR /&gt;
&lt;A href="http://www.computerhope.com/dirhlp.htm#04" target="_blank"&gt;http://www.computerhope.com/dirhlp.htm#04&lt;/A&gt;&lt;BR /&gt;
You could use the ls command in *nix to get similar information.&lt;BR /&gt;
&lt;BR /&gt;
If you run it periodically as a scheduled task (cron), you could pipe the output to a file and then analyze the trends with SAS.</description>
      <pubDate>Tue, 30 Nov 2010 19:25:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Determining-session-sizes-on-a-server/m-p/41282#M8455</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2010-11-30T19:25:57Z</dc:date>
    </item>
    <item>
      <title>Re: Determining session sizes on a server</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Determining-session-sizes-on-a-server/m-p/41283#M8456</link>
      <description>Thanks for the reply Doc@Duke.&lt;BR /&gt;
&lt;BR /&gt;
Unfortunately, I am unable to issue OS commands as these have been disabled for security reasons.&lt;BR /&gt;
&lt;BR /&gt;
My only real access to the server is through Base SAS.&lt;BR /&gt;
&lt;BR /&gt;
Cheers,&lt;BR /&gt;
&lt;BR /&gt;
Fat Captain.</description>
      <pubDate>Fri, 03 Dec 2010 15:00:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Determining-session-sizes-on-a-server/m-p/41283#M8456</guid>
      <dc:creator>FatCaptain</dc:creator>
      <dc:date>2010-12-03T15:00:50Z</dc:date>
    </item>
  </channel>
</rss>

