<?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: Not a SAS programmer but wants to code the following in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Not-a-SAS-programmer-but-wants-to-code-the-following/m-p/244657#M45601</link>
    <description>&lt;P&gt;Why do you not just run that command and stream the output to a CSV file? &amp;nbsp;Am sure it can be done, in DOS its just:&lt;/P&gt;
&lt;P&gt;dir c:\temp -&amp;gt; results.txt&lt;/P&gt;
&lt;P&gt;Your an admin, so you should have the tools for this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It can get a bit more complicated is you want to do it in SAS.&lt;/P&gt;</description>
    <pubDate>Wed, 20 Jan 2016 12:55:01 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2016-01-20T12:55:01Z</dc:date>
    <item>
      <title>Not a SAS programmer but wants to code the following</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Not-a-SAS-programmer-but-wants-to-code-the-following/m-p/244654#M45600</link>
      <description>&lt;P&gt;I am not a SAS programmer but more behind the scences (admin).&amp;nbsp; I am looking to code the following : in Base SAS 9.4 or Enterprise Guide 6.1.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have 3 seperate Unix servers that I want to connect to and run the following command df -h&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then generate those results and export to a excel spreadsheet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the following to work with:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;---Base SAS Software&lt;BR /&gt;---SAS/STAT&lt;BR /&gt;---SAS/GRAPH&lt;BR /&gt;---SAS/ETS&lt;BR /&gt;---SAS/FSP&lt;BR /&gt;---SAS/OR&lt;BR /&gt;---SAS/AF&lt;BR /&gt;---SAS/IML&lt;BR /&gt;---SAS/ASSIST&lt;BR /&gt;---SAS/CONNECT&lt;BR /&gt;---SAS/EIS&lt;BR /&gt;---MDDB Server common products&lt;BR /&gt;---SAS/Secure 168-bit&lt;BR /&gt;---SAS/Secure Windows&lt;BR /&gt;---SAS Enterprise Guide&lt;BR /&gt;---OR OPT&lt;BR /&gt;---OR PRS&lt;BR /&gt;---OR IVS&lt;BR /&gt;---OR LSO&lt;BR /&gt;---SAS/ACCESS Interface to Oracle&lt;BR /&gt;---SAS/ACCESS Interface to PC Files&lt;BR /&gt;---SAS/ACCESS Interface to ODBC&lt;BR /&gt;---SAS/IML Studio&lt;BR /&gt;---SAS Workspace Server for Local Access&lt;BR /&gt;---High Performance Suite&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2016 12:46:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Not-a-SAS-programmer-but-wants-to-code-the-following/m-p/244654#M45600</guid>
      <dc:creator>S_B</dc:creator>
      <dc:date>2016-01-20T12:46:31Z</dc:date>
    </item>
    <item>
      <title>Re: Not a SAS programmer but wants to code the following</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Not-a-SAS-programmer-but-wants-to-code-the-following/m-p/244657#M45601</link>
      <description>&lt;P&gt;Why do you not just run that command and stream the output to a CSV file? &amp;nbsp;Am sure it can be done, in DOS its just:&lt;/P&gt;
&lt;P&gt;dir c:\temp -&amp;gt; results.txt&lt;/P&gt;
&lt;P&gt;Your an admin, so you should have the tools for this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It can get a bit more complicated is you want to do it in SAS.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2016 12:55:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Not-a-SAS-programmer-but-wants-to-code-the-following/m-p/244657#M45601</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-01-20T12:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: Not a SAS programmer but wants to code the following</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Not-a-SAS-programmer-but-wants-to-code-the-following/m-p/244660#M45602</link>
      <description>&lt;P&gt;If you are on Linux, I'm pretty sure that are some free/share ware tools that helps do basic resource reporting.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is might out of the scope for this thread, but I can't help seeing that your SAS&amp;nbsp;product portfolio is a bit outdated. If trade in some&amp;nbsp;of the V8 products (MDDB Server, EIS, ASSIST, FSP, AF and potentially CONNECT) so you could use the V9&amp;nbsp;SAS Intelligence Platform. That would include the SAS Environment Manager, that lets you do extensive reporting on both SAS specific, and some OS specific resources "out of the box".&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2016 13:14:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Not-a-SAS-programmer-but-wants-to-code-the-following/m-p/244660#M45602</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2016-01-20T13:14:39Z</dc:date>
    </item>
    <item>
      <title>Re: Not a SAS programmer but wants to code the following</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Not-a-SAS-programmer-but-wants-to-code-the-following/m-p/244667#M45604</link>
      <description>&lt;P&gt;A simple SAS program to read the output of the df command into a SAS file looks like that:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename oscmd pipe "df -k";

data diskfree;
infile oscmd dlm=" " truncover firstobs=2;
length
  volume $30
  space 8
  used 8
  nodes 8
  directory $100
;
informat
  percent
  npercent
    percent5.
;
format
  percent
  npercent
    percent5.
  space
  used
    comma12.
  nodes comma9.
;
input
  volume@
;
if volume ne '/proc';
input
  space
  used
  percent
  nodes
  npercent
  directory
;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Note that I use -k instead of the -h option, as it spares me the hassle of interpreting the K, M, or G.&lt;/P&gt;
&lt;P&gt;Also note the subsetting if that suppresses the /proc filesystem, as it does not contain valid numerical values (AIX)&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2016 13:36:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Not-a-SAS-programmer-but-wants-to-code-the-following/m-p/244667#M45604</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-01-20T13:36:16Z</dc:date>
    </item>
  </channel>
</rss>

