<?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: SAS Code for housekeeping in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Code-for-housekeeping/m-p/716810#M21473</link>
    <description>&lt;P&gt;As I said, you can run the command outside SAS and pick up the result. For this, you need to log on to the UNIX server with a SSH client (e.g. PuTTY). If you want to go down that route, let me know.&lt;/P&gt;
&lt;P&gt;In particular would it be nice to know the exact UNIX brand you use (Linux, Solaris, AIX, HP-UX).&lt;/P&gt;</description>
    <pubDate>Thu, 04 Feb 2021 13:37:44 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2021-02-04T13:37:44Z</dc:date>
    <item>
      <title>SAS Code for housekeeping</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Code-for-housekeeping/m-p/716753#M21467</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One of the library is used by lots of users and can get full quickly.&lt;/P&gt;
&lt;P&gt;I would like to know if there is a code that gives how much is the space used and % of space remaining etc...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your help would be much appreciated&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Thu, 04 Feb 2021 08:31:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Code-for-housekeeping/m-p/716753#M21467</guid>
      <dc:creator>Question</dc:creator>
      <dc:date>2021-02-04T08:31:02Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Code for housekeeping</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Code-for-housekeeping/m-p/716756#M21468</link>
      <description>&lt;P&gt;I do that outside of SAS, by using a script with df (the UNIX command that shows disk usage) through the CGI gateway, so a simple click on a web link is all that's needed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But you can use such command from SAS (if XCMD is enabled, of course).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So we need to know&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;which operating system your SAS server runs on&lt;/LI&gt;
&lt;LI&gt;if XCMD is enabled (PROC OPTIONS)&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Thu, 04 Feb 2021 08:40:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Code-for-housekeeping/m-p/716756#M21468</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-02-04T08:40:09Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Code for housekeeping</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Code-for-housekeeping/m-p/716761#M21469</link>
      <description>&lt;P&gt;This kind of monotring is usually managed by platform administrators, and standard tool exists for this. So I sugets that you investigate those options first, before you are building something specific in SAS, or that is driven by the SAS platform.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Feb 2021 08:57:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Code-for-housekeeping/m-p/716761#M21469</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2021-02-04T08:57:28Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Code for housekeeping</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Code-for-housekeeping/m-p/716762#M21470</link>
      <description>&lt;P&gt;Hi Kurt,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your response.&lt;/P&gt;
&lt;P&gt;Please see below my answers :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;which operating system your SAS server runs on : Unix&lt;/LI&gt;
&lt;LI&gt;if XCMD is enabled (PROC OPTIONS) :&amp;nbsp;&amp;nbsp;&amp;nbsp;NOXCMD&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Disables the X command in SAS.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;I have run the proc options and I get the above ...so not sure how to proceed now.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Thu, 04 Feb 2021 08:58:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Code-for-housekeeping/m-p/716762#M21470</guid>
      <dc:creator>Question</dc:creator>
      <dc:date>2021-02-04T08:58:53Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Code for housekeeping</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Code-for-housekeeping/m-p/716777#M21471</link>
      <description>&lt;P&gt;To my knowledge, SAS has no built-in tools to retrieve information like disk size and disk usage.&lt;/P&gt;
&lt;P&gt;So you will either have to do it via shell script, or have XCMD enabled.&lt;/P&gt;
&lt;P&gt;This is the code that gets all mounted volumes and their usage:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data df;
infile "df" pipe truncover firstobs=2;
input
  volname :$50.
  blocks
  free
  used_blocks percent7.
  iused
  ipercent percent7.
  mountpoint :$50.
;
format used_blocks ipercent percent7.2;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;(used on AIX, Linux might need a slighly different column layout)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you can't get XCMD enabled, you can use crontab to run the df regularly (every minute, if you want) and write the result to a file, which you then pick up with the same data step as above (just change the INFILE).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You then need to identify which mount points contain your SAS libraries.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Feb 2021 09:59:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Code-for-housekeeping/m-p/716777#M21471</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-02-04T09:59:34Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Code for housekeeping</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Code-for-housekeeping/m-p/716805#M21472</link>
      <description>&lt;P&gt;Thank you Kurt,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;yes I definitely need XCMD enabled as I get the below errror...so will speak to our SAS administrators etc and see if I am allowed to use this function ect...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ERROR: Insufficient authorization to access PIPE.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Thu, 04 Feb 2021 13:24:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Code-for-housekeeping/m-p/716805#M21472</guid>
      <dc:creator>Question</dc:creator>
      <dc:date>2021-02-04T13:24:08Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Code for housekeeping</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Code-for-housekeeping/m-p/716810#M21473</link>
      <description>&lt;P&gt;As I said, you can run the command outside SAS and pick up the result. For this, you need to log on to the UNIX server with a SSH client (e.g. PuTTY). If you want to go down that route, let me know.&lt;/P&gt;
&lt;P&gt;In particular would it be nice to know the exact UNIX brand you use (Linux, Solaris, AIX, HP-UX).&lt;/P&gt;</description>
      <pubDate>Thu, 04 Feb 2021 13:37:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Code-for-housekeeping/m-p/716810#M21473</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-02-04T13:37:44Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Code for housekeeping</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Code-for-housekeeping/m-p/716917#M21474</link>
      <description>&lt;P&gt;If you don;t have access ti PIPE (talk to the admins, there's seldom a good reason not to), you cannot retrieve free space information. You can still retrieve file information. Look a the very first (pinned) topic in the &lt;EM&gt;programming&lt;/EM&gt; community. It should contain everything you need.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Feb 2021 21:10:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Code-for-housekeeping/m-p/716917#M21474</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2021-02-04T21:10:29Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Code for housekeeping</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Code-for-housekeeping/m-p/716929#M21475</link>
      <description>&lt;P&gt;SAS Environment Manager monitors your SAS server resources and can be configured to send alerts when disk usage is high - for example &amp;gt; 95%. See screenshot for an example:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="screenshot35.JPG" style="width: 660px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/54332iC5B0B3967E3D0C21/image-size/large?v=v2&amp;amp;px=999" role="button" title="screenshot35.JPG" alt="screenshot35.JPG" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Feb 2021 22:11:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Code-for-housekeeping/m-p/716929#M21475</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2021-02-04T22:11:11Z</dc:date>
    </item>
  </channel>
</rss>

