<?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 X Command Question in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/X-Command-Question/m-p/49812#M13522</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;and, from SAS-L as well, &lt;SPAN id="MSGHDR-REPLY-TO-PRE"&gt;Bolotin Yevgeniy offered a solution that is less finicky:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;x "cmd /c ping &lt;A href="http://www.google.ca&amp;nbsp;" target="_blank"&gt;www.google.ca&amp;nbsp;&lt;/A&gt; &amp;gt; c:\pipe3.txt";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course, he also stated that with this method if you are not on windows, you would have to use the appropriate shell commands for your OS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Nov 2011 20:38:43 GMT</pubDate>
    <dc:creator>art297</dc:creator>
    <dc:date>2011-11-17T20:38:43Z</dc:date>
    <item>
      <title>X Command Question</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/X-Command-Question/m-p/49808#M13518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody tell me why this works:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; data _null_;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; x dir p:\sas\data\*.txt &amp;gt; p:\sas\data\test.txt ;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; run;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but this doesn't:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; data _null_;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; x ping &lt;A href="http://www.google.ca" target="_blank"&gt;www.google.ca&lt;/A&gt; &amp;gt; p:\sas\data\pingtest.txt ; &lt;/P&gt;&lt;P&gt;&amp;nbsp; run;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have OPTION XWAIT so I need to close the X window when it opens in the first example, but in the second example, the window opens and closes right away - tooo fast to see any messages or errors (if any).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can enter the command from a CMD window and it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Nov 2011 16:39:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/X-Command-Question/m-p/49808#M13518</guid>
      <dc:creator>OS2Rules</dc:creator>
      <dc:date>2011-11-17T16:39:44Z</dc:date>
    </item>
    <item>
      <title>X Command Question</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/X-Command-Question/m-p/49809#M13519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good question!&amp;nbsp; I don't know why it doesn't work, but I can offer a work-around.&amp;nbsp; It worked for me when I submitted the command using a pipe.&amp;nbsp; What I ran was:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Filename pinginf pipe "ping www.google.ca" ;&lt;/P&gt;&lt;P&gt;Filename pingout "c:\art\pingout.txt";&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;&amp;nbsp; infile pinginf pad ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; file pingout;&lt;/P&gt;&lt;P&gt;&amp;nbsp; input dsn $50. ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; put dsn;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Nov 2011 17:36:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/X-Command-Question/m-p/49809#M13519</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-11-17T17:36:30Z</dc:date>
    </item>
    <item>
      <title>X Command Question</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/X-Command-Question/m-p/49810#M13520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Art:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(How's it goin', eh?) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried the pipe, and I also got it to work by using the X command to run a .BAT file that contains the PING command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Really odd that it won't run the PING from the X command itself.&amp;nbsp; Wonder if anyone from SAS knows whats up?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Nov 2011 17:40:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/X-Command-Question/m-p/49810#M13520</guid>
      <dc:creator>OS2Rules</dc:creator>
      <dc:date>2011-11-17T17:40:54Z</dc:date>
    </item>
    <item>
      <title>X Command Question</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/X-Command-Question/m-p/49811#M13521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Joe Matise, over on SAS-L, suggested an interest combination of quotes that worked:&lt;/P&gt;&lt;P&gt;x '"ping www.google.ca" &amp;gt; c:\ping2.txt';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if that works for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise, the &amp;gt; symbol is apparently being considered a parameter rather than an argument.&amp;nbsp; Also, having to specify it this way won't accept rerouted aliases.&amp;nbsp; Thus, in the US, &lt;A href="http://www.google.ca" target="_blank"&gt;www.google.ca&lt;/A&gt; won't work using this method.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Nov 2011 20:02:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/X-Command-Question/m-p/49811#M13521</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-11-17T20:02:55Z</dc:date>
    </item>
    <item>
      <title>X Command Question</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/X-Command-Question/m-p/49812#M13522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;and, from SAS-L as well, &lt;SPAN id="MSGHDR-REPLY-TO-PRE"&gt;Bolotin Yevgeniy offered a solution that is less finicky:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;x "cmd /c ping &lt;A href="http://www.google.ca&amp;nbsp;" target="_blank"&gt;www.google.ca&amp;nbsp;&lt;/A&gt; &amp;gt; c:\pipe3.txt";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course, he also stated that with this method if you are not on windows, you would have to use the appropriate shell commands for your OS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Nov 2011 20:38:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/X-Command-Question/m-p/49812#M13522</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-11-17T20:38:43Z</dc:date>
    </item>
    <item>
      <title>X Command Question</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/X-Command-Question/m-p/49813#M13523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe you need this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://support.sas.com/kb/10/899.html"&gt;http://support.sas.com/kb/10/899.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ksharp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Nov 2011 03:27:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/X-Command-Question/m-p/49813#M13523</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2011-11-18T03:27:33Z</dc:date>
    </item>
    <item>
      <title>X Command Question</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/X-Command-Question/m-p/49814#M13524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nice find!&amp;nbsp; Doesn't explain it, though, other than SAS has known about it since 2003.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How did you find the note?&amp;nbsp; After seeing your post I did a google search for:&lt;/P&gt;&lt;P&gt;"note" "PING command might not work" site:support.sas.com&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with the result:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Information" height="14" src="http://www.google.ca/images/yellow_warning.gif" style="color: #222222; font-family: arial, sans-serif; text-align: -webkit-auto; background-color: #ffffff; font-size: medium;" width="14" /&gt; No results found for &lt;STRONG style="color: #222222; font-family: arial, sans-serif; text-align: -webkit-auto; background-color: #ffffff; font-size: medium;"&gt;"note" "PING command might not work" site:support.sas.com&lt;/STRONG&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Nov 2011 03:56:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/X-Command-Question/m-p/49814#M13524</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-11-18T03:56:21Z</dc:date>
    </item>
    <item>
      <title>X Command Question</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/X-Command-Question/m-p/49815#M13525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi. Art. &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;I input "&amp;nbsp; x ping " at support.sas.com. and got it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ksharp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Nov 2011 06:02:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/X-Command-Question/m-p/49815#M13525</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2011-11-18T06:02:59Z</dc:date>
    </item>
    <item>
      <title>X Command Question</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/X-Command-Question/m-p/49816#M13526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is nearly exactly what I had to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks all - didn't expect so much help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Nov 2011 13:24:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/X-Command-Question/m-p/49816#M13526</guid>
      <dc:creator>OS2Rules</dc:creator>
      <dc:date>2011-11-18T13:24:54Z</dc:date>
    </item>
  </channel>
</rss>

