<?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 statement with spaces in path in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/rename-statement-with-spaces-in-path/m-p/210352#M52048</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately we don't have rights to change some of the parent directories.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Jun 2015 18:56:59 GMT</pubDate>
    <dc:creator>Liquid</dc:creator>
    <dc:date>2015-06-19T18:56:59Z</dc:date>
    <item>
      <title>rename statement with spaces in path</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/rename-statement-with-spaces-in-path/m-p/210350#M52046</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;I am trying to use the handy rename function (&lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a003122440.htm" title="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a003122440.htm"&gt;http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a003122440.htm&lt;/A&gt;)s in&amp;nbsp; to change the name of external files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;DATA _NULL_;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; rc=rename("c:\testsas\file", "c:\testsas\file_renamed", 'file');&lt;/P&gt;&lt;P&gt;&amp;nbsp; PUT rc;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this does not work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;DATA _NULL_;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp; rc=rename("c:\test sas\file", "c:\test sas\file_renamed", 'file');&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp; PUT rc;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;RUN;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;How can I get it to work when there are spaces in the directory/file?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jun 2015 18:11:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/rename-statement-with-spaces-in-path/m-p/210350#M52046</guid>
      <dc:creator>Liquid</dc:creator>
      <dc:date>2015-06-19T18:11:32Z</dc:date>
    </item>
    <item>
      <title>Re: rename statement with spaces in path</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/rename-statement-with-spaces-in-path/m-p/210351#M52047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is avoiding spaces in file and/or directory names an answer? I have seen more issues on this with SAS. the problem is you need ^ at the oslevel arround the file/directory name. This "often ha a different meaning in Sas or in thé she'll in between. That is becoming a fight on to the ' and ". Sometimes disappearing magically.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jun 2015 18:50:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/rename-statement-with-spaces-in-path/m-p/210351#M52047</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2015-06-19T18:50:50Z</dc:date>
    </item>
    <item>
      <title>Re: rename statement with spaces in path</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/rename-statement-with-spaces-in-path/m-p/210352#M52048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately we don't have rights to change some of the parent directories.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jun 2015 18:56:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/rename-statement-with-spaces-in-path/m-p/210352#M52048</guid>
      <dc:creator>Liquid</dc:creator>
      <dc:date>2015-06-19T18:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: rename statement with spaces in path</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/rename-statement-with-spaces-in-path/m-p/210353#M52049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you try; embedding in single quotes as indication of a sas string and inner embedded with double quotes as of Windows allowing spaces?&lt;/P&gt;&lt;P&gt;You are seeing the ' and " close after each other.&lt;/P&gt;&lt;P&gt;'"Test folfder/file bsme"'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jun 2015 19:15:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/rename-statement-with-spaces-in-path/m-p/210353#M52049</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2015-06-19T19:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: rename statement with spaces in path</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/rename-statement-with-spaces-in-path/m-p/210354#M52050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Below code works for me with SAS9.4 under Win7. Are you 100% sure that the file you want to rename exists under your path?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA _NULL_;&lt;/P&gt;&lt;P&gt;&amp;nbsp; rc=rename("C:\test\name with blank\have.txt", "C:\test\name with blank\have_renamed.txt", 'file');&lt;/P&gt;&lt;P&gt;&amp;nbsp; PUT rc;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Jun 2015 04:33:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/rename-statement-with-spaces-in-path/m-p/210354#M52050</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2015-06-20T04:33:14Z</dc:date>
    </item>
    <item>
      <title>Re: rename statement with spaces in path</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/rename-statement-with-spaces-in-path/m-p/210355#M52051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Enclose the names in additional single quotes:&lt;/P&gt;&lt;P&gt;'"c:\testsas\file"', '"c:\testsas\file_renamed"'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and put a big sign up at the company's door:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DO NOT USE BLANKS IN FILENAMES&lt;/P&gt;&lt;P&gt;(all employees repeat 100 times during morning meditation)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Jun 2015 17:45:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/rename-statement-with-spaces-in-path/m-p/210355#M52051</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2015-06-21T17:45:34Z</dc:date>
    </item>
  </channel>
</rss>

