<?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: Executing DOS Commands in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Executing-DOS-Commands/m-p/412023#M279808</link>
    <description>&lt;P&gt;Why do you need system commands (which are likely disabled) for such a thing:&lt;/P&gt;
&lt;PRE&gt;proc datasets lib=&amp;lt;insertlib&amp;gt; nolist;
  delete natcumfbs1;
quit;

data &amp;lt;insertlib&amp;gt;.natcumfbs1;
  set &amp;lt;insertlib&amp;gt;.natcumfbs;
run;&lt;/PRE&gt;
&lt;P&gt;I don't know your library so you need to put that in.&lt;/P&gt;</description>
    <pubDate>Thu, 09 Nov 2017 16:56:49 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2017-11-09T16:56:49Z</dc:date>
    <item>
      <title>Executing DOS Commands</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Executing-DOS-Commands/m-p/412014#M279806</link>
      <description>&lt;P&gt;Hi all, at the end of an EG project, I need to have one dataset&amp;nbsp;deleted and one copy and renamed as the one that was just deleted (for the next run).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the following in a code node as the last step of the project:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options noxwait;
data _null_;
	x 'del \\NCRFP4\TAF\SAS Projects Datasets\NATGapDatasets\natcumfbs1.sas7bdat'; run;
	x 'copy \\NCRFP4\TAF\SAS Projects Datasets\NATGapDatasets\natcumfbs.sas7bdat \\NCRFP4\TAF\SAS Projects Datasets\NATGapDatasets\natcumfbs1.sas7bdat';
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;these steps are never executed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any insight?&amp;nbsp; Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 09 Nov 2017 16:51:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Executing-DOS-Commands/m-p/412014#M279806</guid>
      <dc:creator>BCNAV</dc:creator>
      <dc:date>2017-11-09T16:51:53Z</dc:date>
    </item>
    <item>
      <title>Re: Executing DOS Commands</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Executing-DOS-Commands/m-p/412021#M279807</link>
      <description>&lt;P&gt;EG rarely supports X commands. Is X commands enabled and are you running locally where DOS is available or is EG running off a Unix Server?&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Is there a specific reason you're not using the SAS functionality for this, ie PROC DATASETS can both delete and move data?&lt;/P&gt;</description>
      <pubDate>Thu, 09 Nov 2017 16:55:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Executing-DOS-Commands/m-p/412021#M279807</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-11-09T16:55:40Z</dc:date>
    </item>
    <item>
      <title>Re: Executing DOS Commands</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Executing-DOS-Commands/m-p/412023#M279808</link>
      <description>&lt;P&gt;Why do you need system commands (which are likely disabled) for such a thing:&lt;/P&gt;
&lt;PRE&gt;proc datasets lib=&amp;lt;insertlib&amp;gt; nolist;
  delete natcumfbs1;
quit;

data &amp;lt;insertlib&amp;gt;.natcumfbs1;
  set &amp;lt;insertlib&amp;gt;.natcumfbs;
run;&lt;/PRE&gt;
&lt;P&gt;I don't know your library so you need to put that in.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Nov 2017 16:56:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Executing-DOS-Commands/m-p/412023#M279808</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-11-09T16:56:49Z</dc:date>
    </item>
    <item>
      <title>Re: Executing DOS Commands</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Executing-DOS-Commands/m-p/412084#M279809</link>
      <description>Thank you all. I am updating old code, and the X commands were there. It just never occurred to me to use proc datasets...Bah! Thanks!</description>
      <pubDate>Thu, 09 Nov 2017 19:08:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Executing-DOS-Commands/m-p/412084#M279809</guid>
      <dc:creator>BCNAV</dc:creator>
      <dc:date>2017-11-09T19:08:25Z</dc:date>
    </item>
  </channel>
</rss>

