<?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: X command in PC SAS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/X-command-in-PC-SAS/m-p/173654#M33341</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your title is a little misleading.&amp;nbsp; Looks like you want to run a Unix command using RSUBMIT block to a remote SAS session.&amp;nbsp; Doesn't look like PC SAS has anything to do with it.&lt;/P&gt;&lt;P&gt;I usually like to use INFILE ... PIPE in a data step for those types of commands. That way you can see the response from the operating system.&amp;nbsp; Also not sure what the macro is there for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New';"&gt;rsubmit;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New';"&gt;data _null_;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New';"&gt;&amp;nbsp; infile "rm /users/apps/cust_folder/customers1.sas7bdat" pipe ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp; input;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp; put _infile_;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New';"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'Courier New'; font-size: 10pt; font-style: inherit; font-weight: inherit; line-height: 1.5em;"&gt;endrsubmit;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Feb 2015 18:28:16 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2015-02-18T18:28:16Z</dc:date>
    <item>
      <title>X command in PC SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/X-command-in-PC-SAS/m-p/173653#M33340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to remove a permanent SAS dataset stored in a Unix directory from PC SAS.&amp;nbsp; I enclose the code in Rsubmit and Endrsubmit;&amp;nbsp; For testing purpose, I try to remove just one file first.&amp;nbsp; When I run the code it has no errors.&amp;nbsp; But it does not remove the dataset either.&amp;nbsp; Can anyone tell me what I am doing wrong?&amp;nbsp; Thank you very much for any input you may have!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;rsubmit;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;%macro remove;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; x "rm /users/apps/cust_folder/customers1.sas7bdat";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;%mend;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;endrsubmit;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;rsubmit;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;%remove;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;endrsubmit;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2015 18:16:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/X-command-in-PC-SAS/m-p/173653#M33340</guid>
      <dc:creator>KevinC_</dc:creator>
      <dc:date>2015-02-18T18:16:39Z</dc:date>
    </item>
    <item>
      <title>Re: X command in PC SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/X-command-in-PC-SAS/m-p/173654#M33341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your title is a little misleading.&amp;nbsp; Looks like you want to run a Unix command using RSUBMIT block to a remote SAS session.&amp;nbsp; Doesn't look like PC SAS has anything to do with it.&lt;/P&gt;&lt;P&gt;I usually like to use INFILE ... PIPE in a data step for those types of commands. That way you can see the response from the operating system.&amp;nbsp; Also not sure what the macro is there for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New';"&gt;rsubmit;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New';"&gt;data _null_;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New';"&gt;&amp;nbsp; infile "rm /users/apps/cust_folder/customers1.sas7bdat" pipe ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp; input;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp; put _infile_;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New';"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'Courier New'; font-size: 10pt; font-style: inherit; font-weight: inherit; line-height: 1.5em;"&gt;endrsubmit;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2015 18:28:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/X-command-in-PC-SAS/m-p/173654#M33341</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2015-02-18T18:28:16Z</dc:date>
    </item>
    <item>
      <title>Re: X command in PC SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/X-command-in-PC-SAS/m-p/173655#M33342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Tom,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I ran your code and it did not display anything from _infile_.&amp;nbsp; There was no errors in the log.&amp;nbsp; In fact, the only thing I see in the log was "Remote submit to XXX commencing" and "Remote submit to xxx complete".&amp;nbsp; Any other suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just to make myself clear, I run this from PC (Not on Unix). Hence, I call it 'PC SAS'. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2015 18:37:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/X-command-in-PC-SAS/m-p/173655#M33342</guid>
      <dc:creator>KevinC_</dc:creator>
      <dc:date>2015-02-18T18:37:20Z</dc:date>
    </item>
    <item>
      <title>Re: X command in PC SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/X-command-in-PC-SAS/m-p/173656#M33343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is that location available as a library from your SAS server or directly from your computer?&lt;/P&gt;&lt;P&gt;If so there is no reason to go to system commands. You could use proc delete or proc datasets.&lt;/P&gt;&lt;P&gt;And remember that UnIx is veRy Case sensiTIVE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2015 18:37:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/X-command-in-PC-SAS/m-p/173656#M33343</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2015-02-18T18:37:36Z</dc:date>
    </item>
    <item>
      <title>Re: X command in PC SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/X-command-in-PC-SAS/m-p/173657#M33344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there any particular reason for using an operating system command instead of these SAS techniques?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: Consolas; font-size: 9pt;"&gt;proc datasets library = MyLib;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="background: white; color: black; font-family: Consolas; font-size: 9pt;"&gt;delete customers1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="background: white; color: black; font-family: Consolas; font-size: 9pt;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: Consolas; font-size: 9pt;"&gt;quit;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: Consolas; font-size: 9pt;"&gt;or &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: Consolas; font-size: 9pt;"&gt;proc sql;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: Consolas; font-size: 9pt;"&gt;&amp;nbsp; drop table Mylib.customers1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: Consolas; font-size: 9pt;"&gt;quit;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2015 18:37:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/X-command-in-PC-SAS/m-p/173657#M33344</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2015-02-18T18:37:41Z</dc:date>
    </item>
    <item>
      <title>Re: X command in PC SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/X-command-in-PC-SAS/m-p/173658#M33345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sounds like your remote session is confused. Otherwise you should see the data step in the log with attendant NOTE: lines.&lt;/P&gt;&lt;P&gt;Try closing it and opening a new one.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2015 18:52:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/X-command-in-PC-SAS/m-p/173658#M33345</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2015-02-18T18:52:38Z</dc:date>
    </item>
    <item>
      <title>Re: X command in PC SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/X-command-in-PC-SAS/m-p/173659#M33346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Tom, ballardw, and&amp;nbsp; SASKiwi. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom,&lt;/P&gt;&lt;P&gt;I restarted a new SAS session and now I was able to see more info in the log.&amp;nbsp; The problem was one of the letters in the file name had an incorrect case.&amp;nbsp; It works like a charm now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you everyone!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2015 19:13:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/X-command-in-PC-SAS/m-p/173659#M33346</guid>
      <dc:creator>KevinC_</dc:creator>
      <dc:date>2015-02-18T19:13:32Z</dc:date>
    </item>
  </channel>
</rss>

