<?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 How to Converting OS command output results into SAS data sets in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-Converting-OS-command-output-results-into-SAS-data-sets/m-p/443378#M110917</link>
    <description>&lt;P&gt;Please assist or point me to some good examples for working with OS commands and converting those results into usable SAS dataset results.&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I am trying to do is work with SAS and the OS commands to review changes in programs and data over time which works as expected to this point.&amp;nbsp; What I am expecting is a SAS dataset for each time that contains results from changes found by the OS command output results contains information. &amp;nbsp; the information is used after this process but currently I am saving the SAS log as text and working with that.&lt;/P&gt;&lt;P&gt;This is the macro produces and an example of the output from a SAS log after the macro has been called included under the macro below.&lt;/P&gt;&lt;P&gt;%macro changed_sas;&lt;BR /&gt;&amp;nbsp;data _null_;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;infile oscmd;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;input;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;put _infile_;&lt;BR /&gt;&amp;nbsp;run;&lt;BR /&gt;%mend changed_sas;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;***** C:\TEST\CREATE.SAS&lt;/P&gt;&lt;P&gt;Â&amp;nbsp;Â&amp;nbsp; 74:&lt;/P&gt;&lt;P&gt;Â&amp;nbsp;Â&amp;nbsp; 75:Â&amp;nbsp; %let Month1 = 200001;&lt;/P&gt;&lt;P&gt;Â&amp;nbsp;Â&amp;nbsp; 76:Â&amp;nbsp; %let MonthN = 201803;&lt;/P&gt;&lt;P&gt;Â&amp;nbsp;Â&amp;nbsp; 77:Â&amp;nbsp; %let update = D;&lt;/P&gt;&lt;P&gt;Â&amp;nbsp;Â&amp;nbsp; 78:&lt;/P&gt;&lt;P&gt;***** D:\TEST\CREATE.SAS&lt;/P&gt;&lt;P&gt;Â&amp;nbsp;Â&amp;nbsp; 74:&lt;/P&gt;&lt;P&gt;Â&amp;nbsp;Â&amp;nbsp; 75:Â&amp;nbsp; %let Month1 = 200001;&lt;/P&gt;&lt;P&gt;Â&amp;nbsp;Â&amp;nbsp; 76:Â&amp;nbsp; %let MonthN = 201712;&lt;/P&gt;&lt;P&gt;Â&amp;nbsp;Â&amp;nbsp; 77:Â&amp;nbsp; %let update = N;&lt;/P&gt;&lt;P&gt;Â&amp;nbsp;Â&amp;nbsp; 78:&lt;/P&gt;&lt;P&gt;*****&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 07 Mar 2018 15:56:49 GMT</pubDate>
    <dc:creator>VDD</dc:creator>
    <dc:date>2018-03-07T15:56:49Z</dc:date>
    <item>
      <title>How to Converting OS command output results into SAS data sets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Converting-OS-command-output-results-into-SAS-data-sets/m-p/443378#M110917</link>
      <description>&lt;P&gt;Please assist or point me to some good examples for working with OS commands and converting those results into usable SAS dataset results.&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I am trying to do is work with SAS and the OS commands to review changes in programs and data over time which works as expected to this point.&amp;nbsp; What I am expecting is a SAS dataset for each time that contains results from changes found by the OS command output results contains information. &amp;nbsp; the information is used after this process but currently I am saving the SAS log as text and working with that.&lt;/P&gt;&lt;P&gt;This is the macro produces and an example of the output from a SAS log after the macro has been called included under the macro below.&lt;/P&gt;&lt;P&gt;%macro changed_sas;&lt;BR /&gt;&amp;nbsp;data _null_;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;infile oscmd;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;input;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;put _infile_;&lt;BR /&gt;&amp;nbsp;run;&lt;BR /&gt;%mend changed_sas;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;***** C:\TEST\CREATE.SAS&lt;/P&gt;&lt;P&gt;Â&amp;nbsp;Â&amp;nbsp; 74:&lt;/P&gt;&lt;P&gt;Â&amp;nbsp;Â&amp;nbsp; 75:Â&amp;nbsp; %let Month1 = 200001;&lt;/P&gt;&lt;P&gt;Â&amp;nbsp;Â&amp;nbsp; 76:Â&amp;nbsp; %let MonthN = 201803;&lt;/P&gt;&lt;P&gt;Â&amp;nbsp;Â&amp;nbsp; 77:Â&amp;nbsp; %let update = D;&lt;/P&gt;&lt;P&gt;Â&amp;nbsp;Â&amp;nbsp; 78:&lt;/P&gt;&lt;P&gt;***** D:\TEST\CREATE.SAS&lt;/P&gt;&lt;P&gt;Â&amp;nbsp;Â&amp;nbsp; 74:&lt;/P&gt;&lt;P&gt;Â&amp;nbsp;Â&amp;nbsp; 75:Â&amp;nbsp; %let Month1 = 200001;&lt;/P&gt;&lt;P&gt;Â&amp;nbsp;Â&amp;nbsp; 76:Â&amp;nbsp; %let MonthN = 201712;&lt;/P&gt;&lt;P&gt;Â&amp;nbsp;Â&amp;nbsp; 77:Â&amp;nbsp; %let update = N;&lt;/P&gt;&lt;P&gt;Â&amp;nbsp;Â&amp;nbsp; 78:&lt;/P&gt;&lt;P&gt;*****&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Mar 2018 15:56:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Converting-OS-command-output-results-into-SAS-data-sets/m-p/443378#M110917</guid>
      <dc:creator>VDD</dc:creator>
      <dc:date>2018-03-07T15:56:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to Converting OS command output results into SAS data sets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Converting-OS-command-output-results-into-SAS-data-sets/m-p/443389#M110923</link>
      <description>Rather than build your own version control system can you use Git or an established version control system? There are several log and code parsers available from users, if you check lexjansen.com and there's also PROC SCAPROC to trace procedures.</description>
      <pubDate>Wed, 07 Mar 2018 16:00:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Converting-OS-command-output-results-into-SAS-data-sets/m-p/443389#M110923</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-03-07T16:00:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to Converting OS command output results into SAS data sets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Converting-OS-command-output-results-into-SAS-data-sets/m-p/443392#M110925</link>
      <description>&lt;P&gt;And what information should end up in the dataset?&lt;/P&gt;</description>
      <pubDate>Wed, 07 Mar 2018 16:03:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Converting-OS-command-output-results-into-SAS-data-sets/m-p/443392#M110925</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-03-07T16:03:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to Converting OS command output results into SAS data sets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Converting-OS-command-output-results-into-SAS-data-sets/m-p/443400#M110928</link>
      <description>&lt;P&gt;What I am expecting is the results in a SAS dataset's based on&amp;nbsp;SAS calling OSCMD and getting output&amp;nbsp;resulted from&amp;nbsp;the DOS command such as FC, DIR ...&amp;nbsp; As an example.&amp;nbsp; I know that GIT works, but what&amp;nbsp;I am looking for is analyzable SAS datasets that are results which&amp;nbsp;are due to changes in SAS programs and SAS datasets, underplaying depended documents related to policies&amp;nbsp;and such&amp;nbsp;over a long time&amp;nbsp;period that involves many changes to each program area under evaluation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Mar 2018 16:18:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Converting-OS-command-output-results-into-SAS-data-sets/m-p/443400#M110928</guid>
      <dc:creator>VDD</dc:creator>
      <dc:date>2018-03-07T16:18:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to Converting OS command output results into SAS data sets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Converting-OS-command-output-results-into-SAS-data-sets/m-p/443422#M110936</link>
      <description>&lt;P&gt;thank you everyone&lt;/P&gt;&lt;P&gt;I needed to replace _null_ with a name and then put statement needed to be replaced with myvar.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;data&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt; test;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;infile&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; oscmd;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;input&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;myvar= _infile_;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;run&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Mar 2018 17:10:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Converting-OS-command-output-results-into-SAS-data-sets/m-p/443422#M110936</guid>
      <dc:creator>VDD</dc:creator>
      <dc:date>2018-03-07T17:10:55Z</dc:date>
    </item>
  </channel>
</rss>

