<?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: Rename function, with forward slash in output name in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Rename-function-with-forward-slash-in-output-name/m-p/659076#M197478</link>
    <description>&lt;P&gt;I don't think you can get SAS to do something that the underlying operating system doesn't support.&lt;/P&gt;
&lt;PRE&gt;C:\downloads&amp;gt;echo "hello" &amp;gt; test1.txt

C:\downloads&amp;gt;rename test1.txt "test1/2.txt"
The system cannot find the path specified.

C:\downloads&amp;gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 15 Jun 2020 18:23:35 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2020-06-15T18:23:35Z</dc:date>
    <item>
      <title>Rename function, with forward slash in output name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Rename-function-with-forward-slash-in-output-name/m-p/659068#M197476</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm trying to use the rename function (in SAS 9.4) to rename a file, however it appears that because I'm using a forward slash in the new filename, that the rename function will not work. Do you know how I can achieve a forward slash in the new filename please?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is the code that I've been trying to use.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data _null_;&lt;BR /&gt;&amp;nbsp; rc=rename("S:\SEP380-201_201_201201001_EoT_999_ET_SIGMA Past Week_std_260123_Feedback.pdf", "S:\SEP380-201_201_201201001_EoT/ET_SIGMA Past Week_std_260123_Feedback.pdf", 'file');&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Many thanks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kriss&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jun 2020 18:05:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Rename-function-with-forward-slash-in-output-name/m-p/659068#M197476</guid>
      <dc:creator>djrisks</dc:creator>
      <dc:date>2020-06-15T18:05:54Z</dc:date>
    </item>
    <item>
      <title>Re: Rename function, with forward slash in output name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Rename-function-with-forward-slash-in-output-name/m-p/659071#M197477</link>
      <description>Windows does not allow forward slash in file names.&lt;BR /&gt;</description>
      <pubDate>Mon, 15 Jun 2020 18:09:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Rename-function-with-forward-slash-in-output-name/m-p/659071#M197477</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-06-15T18:09:59Z</dc:date>
    </item>
    <item>
      <title>Re: Rename function, with forward slash in output name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Rename-function-with-forward-slash-in-output-name/m-p/659076#M197478</link>
      <description>&lt;P&gt;I don't think you can get SAS to do something that the underlying operating system doesn't support.&lt;/P&gt;
&lt;PRE&gt;C:\downloads&amp;gt;echo "hello" &amp;gt; test1.txt

C:\downloads&amp;gt;rename test1.txt "test1/2.txt"
The system cannot find the path specified.

C:\downloads&amp;gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 15 Jun 2020 18:23:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Rename-function-with-forward-slash-in-output-name/m-p/659076#M197478</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-06-15T18:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: Rename function, with forward slash in output name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Rename-function-with-forward-slash-in-output-name/m-p/659091#M197486</link>
      <description>Thank you for confirming, at first I thought that I may need to escape the forward slash.</description>
      <pubDate>Mon, 15 Jun 2020 19:01:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Rename-function-with-forward-slash-in-output-name/m-p/659091#M197486</guid>
      <dc:creator>djrisks</dc:creator>
      <dc:date>2020-06-15T19:01:25Z</dc:date>
    </item>
    <item>
      <title>Re: Rename function, with forward slash in output name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Rename-function-with-forward-slash-in-output-name/m-p/659092#M197487</link>
      <description>Thanks for the confimation.</description>
      <pubDate>Mon, 15 Jun 2020 19:01:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Rename-function-with-forward-slash-in-output-name/m-p/659092#M197487</guid>
      <dc:creator>djrisks</dc:creator>
      <dc:date>2020-06-15T19:01:46Z</dc:date>
    </item>
  </channel>
</rss>

