<?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: FILENAME PIPE &amp;amp; X commands in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/FILENAME-PIPE-amp-X-commands/m-p/323674#M71769</link>
    <description>&lt;P&gt;If you are running in a server environment then the path used may be interpretted by the SAS Server as relative to that machine and not looking at your harddrive at all.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 10 Jan 2017 15:43:17 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2017-01-10T15:43:17Z</dc:date>
    <item>
      <title>FILENAME PIPE &amp; X commands</title>
      <link>https://communities.sas.com/t5/SAS-Programming/FILENAME-PIPE-amp-X-commands/m-p/323578#M71740</link>
      <description>&lt;P&gt;Hi ALL,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to rename one filr in my sas program using the X command. The file name contains some speical character and spaces?&lt;/P&gt;
&lt;P&gt;However the file is not getting renamed. I am using SAs 9;.4&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options noxwait;&lt;BR /&gt;X "RENAME e:\data\Playground\Manjeet\SAS_EG\Bank42\Gamt - trivækst - 2011.egp F345.egp";&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I also tried, but no luck. Can any one suggest any other idea to rename the file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;X 'RENAME "e:\data\Playground\Manjeet\SAS_EG\Bank42\Gamt - trivækst - 2011.egp" "F345.egp"';&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Manjeet&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2017 11:33:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/FILENAME-PIPE-amp-X-commands/m-p/323578#M71740</guid>
      <dc:creator>mnjtrana</dc:creator>
      <dc:date>2017-01-10T11:33:20Z</dc:date>
    </item>
    <item>
      <title>Re: FILENAME PIPE &amp; X commands</title>
      <link>https://communities.sas.com/t5/SAS-Programming/FILENAME-PIPE-amp-X-commands/m-p/323586#M71743</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've tried to simulate the problem here with a dummy file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;X 'RENAME "D:\Temp\Gamt - trivækst - 2011.egp" "F345.egp"';&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;does work as supposed (Windows &lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is the path/file name correct?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Daniel Santos&amp;nbsp;@ &lt;A href="http://www.cgd.pt" target="_blank"&gt;www.cgd.pt&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2017 11:52:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/FILENAME-PIPE-amp-X-commands/m-p/323586#M71743</guid>
      <dc:creator>DanielSantos</dc:creator>
      <dc:date>2017-01-10T11:52:57Z</dc:date>
    </item>
    <item>
      <title>Re: FILENAME PIPE &amp; X commands</title>
      <link>https://communities.sas.com/t5/SAS-Programming/FILENAME-PIPE-amp-X-commands/m-p/323599#M71751</link>
      <description>&lt;P&gt;Are you sure that the SAS process runs in the same context in which Enterprise Guide is running (local SAS, same user)?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To verify that, I'd run&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename oscmd pipe 'dir e:\data\Playground\Manjeet\SAS_EG\Bank42 2&amp;gt;&amp;amp;1';

data _null_;
infile oscmd;
input;
put _infile_;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and look at the log.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2017 12:58:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/FILENAME-PIPE-amp-X-commands/m-p/323599#M71751</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-01-10T12:58:23Z</dc:date>
    </item>
    <item>
      <title>Re: FILENAME PIPE &amp; X commands</title>
      <link>https://communities.sas.com/t5/SAS-Programming/FILENAME-PIPE-amp-X-commands/m-p/323674#M71769</link>
      <description>&lt;P&gt;If you are running in a server environment then the path used may be interpretted by the SAS Server as relative to that machine and not looking at your harddrive at all.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2017 15:43:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/FILENAME-PIPE-amp-X-commands/m-p/323674#M71769</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-01-10T15:43:17Z</dc:date>
    </item>
    <item>
      <title>Re: FILENAME PIPE &amp; X commands</title>
      <link>https://communities.sas.com/t5/SAS-Programming/FILENAME-PIPE-amp-X-commands/m-p/323854#M71841</link>
      <description>&lt;P&gt;I didn't actually got what you mant by the context.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I ran the code and i am seeing the file in log as:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;09/06/2011 &amp;nbsp;16:21 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;77,974 Garant - tilv‘kst - 2011.egp&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Howver the actual file name was:&lt;/P&gt;
&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token string"&gt;Gamt - trivækst - 2011.egp&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Its different, Please suggest what to do.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2017 04:54:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/FILENAME-PIPE-amp-X-commands/m-p/323854#M71841</guid>
      <dc:creator>mnjtrana</dc:creator>
      <dc:date>2017-01-11T04:54:45Z</dc:date>
    </item>
    <item>
      <title>Re: FILENAME PIPE &amp; X commands</title>
      <link>https://communities.sas.com/t5/SAS-Programming/FILENAME-PIPE-amp-X-commands/m-p/323867#M71847</link>
      <description>&lt;P&gt;Since this is on Windows, I suggest using the proper Windows tool (Explorer) to get rid of the non-ASCII characters.&lt;/P&gt;
&lt;P&gt;And make it mandatory policy that filenames must not contain non-ASCII characters or blanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2017 07:23:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/FILENAME-PIPE-amp-X-commands/m-p/323867#M71847</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-01-11T07:23:13Z</dc:date>
    </item>
  </channel>
</rss>

