<?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 SAS program to email the space usage of UNIX file system in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-program-to-email-the-space-usage-of-UNIX-file-system/m-p/311057#M67123</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Right now I'm connecting to the UNIX server and submitting the following commands&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;df -g /sasuser&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;df -g /saswork&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;df -g /sasuser/network_shared&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;It will give output as follows.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Filesystem GB blocks Free %Used Iused %Iused Mounted on&lt;BR /&gt;/dev/sasuserl 1419.00 503.79 65% 48937 1% /sasuser&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Filesystem GB blocks Free %Used Iused %Iused Mounted on&lt;BR /&gt;/dev/sasworkl 477.00 206.59 57% 3283 1% /saswork&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Filesystem GB blocks Free %Used Iused %Iused Mounted on&lt;BR /&gt;prod_storage:/SasShare 1638.40 451.07 73% 328973 2% /sasuser/network_shared.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I used to manually submit the df -g command in each directory as stated above twice (morning and evening) per day to monitor the space usage and then email the same to the team.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Appreciate if someone help me with the SAS program to accomplish this task. Thank you!&lt;/P&gt;</description>
    <pubDate>Fri, 11 Nov 2016 19:58:26 GMT</pubDate>
    <dc:creator>Babloo</dc:creator>
    <dc:date>2016-11-11T19:58:26Z</dc:date>
    <item>
      <title>SAS program to email the space usage of UNIX file system</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-program-to-email-the-space-usage-of-UNIX-file-system/m-p/311057#M67123</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Right now I'm connecting to the UNIX server and submitting the following commands&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;df -g /sasuser&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;df -g /saswork&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;df -g /sasuser/network_shared&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;It will give output as follows.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Filesystem GB blocks Free %Used Iused %Iused Mounted on&lt;BR /&gt;/dev/sasuserl 1419.00 503.79 65% 48937 1% /sasuser&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Filesystem GB blocks Free %Used Iused %Iused Mounted on&lt;BR /&gt;/dev/sasworkl 477.00 206.59 57% 3283 1% /saswork&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Filesystem GB blocks Free %Used Iused %Iused Mounted on&lt;BR /&gt;prod_storage:/SasShare 1638.40 451.07 73% 328973 2% /sasuser/network_shared.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I used to manually submit the df -g command in each directory as stated above twice (morning and evening) per day to monitor the space usage and then email the same to the team.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Appreciate if someone help me with the SAS program to accomplish this task. Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2016 19:58:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-program-to-email-the-space-usage-of-UNIX-file-system/m-p/311057#M67123</guid>
      <dc:creator>Babloo</dc:creator>
      <dc:date>2016-11-11T19:58:26Z</dc:date>
    </item>
    <item>
      <title>Re: SAS program to email the space usage of UNIX file system</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-program-to-email-the-space-usage-of-UNIX-file-system/m-p/311076#M67129</link>
      <description>&lt;P&gt;Mainline per librray, eg sasuser:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data _null_;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;call system("&lt;SPAN&gt;df -g /sasuser &amp;gt; &lt;STRONG&gt;/home/sasuser_usage.txt&lt;/STRONG&gt;");&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; /* add similar to create any other library result */&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;run;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;filename &lt;U&gt;mymail&lt;/U&gt; email "..send_to@..." ;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;data _NULL_;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; file &lt;U&gt;mymail&lt;/U&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;to = ("email_address1@..." "email_address2@..." ... etc... )&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;/* optional */ &amp;nbsp;cc= ("...email ..." &amp;nbsp;....)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;subject = "... subhect text ..."&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;attach = ("&lt;STRONG&gt;/home/sasuser_usage.txt&lt;/STRONG&gt;&lt;SPAN&gt;" "...2nd file..." ...etc... );&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;put "... text line 1 ...";&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;put "... text line 2 ...";&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; ...etc.....&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;run;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2016 20:32:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-program-to-email-the-space-usage-of-UNIX-file-system/m-p/311076#M67129</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2016-11-11T20:32:30Z</dc:date>
    </item>
  </channel>
</rss>

