<?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: Can we use  SAS program  to rename the file name in a folder in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Can-we-use-SAS-program-to-rename-the-file-name-in-a-folder/m-p/838972#M331721</link>
    <description>&lt;P&gt;Of course, with X-command or CALL SYSTEM.&lt;/P&gt;
&lt;P&gt;Unless your SAS administrator has disabled that functionality in the configuration file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;option XCMD enables the X command in SAS.&lt;/P&gt;
&lt;P&gt;option noXCMD disables the X command in SAS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
    <pubDate>Mon, 17 Oct 2022 13:40:55 GMT</pubDate>
    <dc:creator>sbxkoenk</dc:creator>
    <dc:date>2022-10-17T13:40:55Z</dc:date>
    <item>
      <title>Can we use  SAS program  to rename the file name in a folder</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-we-use-SAS-program-to-rename-the-file-name-in-a-folder/m-p/838965#M331718</link>
      <description>&lt;P&gt;Can we use the SAS to rename the file name that already existed in the folders using the&amp;nbsp; system commands? if so can you please tell me how to achieve this:&lt;/P&gt;
&lt;P&gt;Folder: "c\documents\study&lt;/P&gt;
&lt;P&gt;Old filename: stdy_details.xlsx&lt;/P&gt;
&lt;P&gt;New Name: Stdy2022.xlsx&lt;/P&gt;
&lt;P&gt;I want to rename the old file with new name.&amp;nbsp; &amp;nbsp;If possible both ways using base SAS and X command .Thanks for your time.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Oct 2022 13:11:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-we-use-SAS-program-to-rename-the-file-name-in-a-folder/m-p/838965#M331718</guid>
      <dc:creator>SASuserlot</dc:creator>
      <dc:date>2022-10-17T13:11:50Z</dc:date>
    </item>
    <item>
      <title>Re: Can we use  SAS program  to rename the file name in a folder</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-we-use-SAS-program-to-rename-the-file-name-in-a-folder/m-p/838969#M331719</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With the SAS RENAME function , you can also rename external files !&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See here :&lt;/P&gt;
&lt;P&gt;SAS® 9.4 and SAS® Viya® 3.5 Programming Documentation | SAS 9.4 / Viya 3.5&lt;BR /&gt;Functions and CALL Routines&lt;BR /&gt;RENAME Function&lt;BR /&gt;Renames a member of a SAS library, an entry in a SAS catalog, an external file, or a directory.&lt;BR /&gt;&lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lefunctionsref/p14axci3mo3egan1okbcydvbt433.htm" target="_blank"&gt;https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lefunctionsref/p14axci3mo3egan1okbcydvbt433.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Mon, 17 Oct 2022 13:20:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-we-use-SAS-program-to-rename-the-file-name-in-a-folder/m-p/838969#M331719</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2022-10-17T13:20:59Z</dc:date>
    </item>
    <item>
      <title>Re: Can we use  SAS program  to rename the file name in a folder</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-we-use-SAS-program-to-rename-the-file-name-in-a-folder/m-p/838971#M331720</link>
      <description>&lt;P&gt;Thank you. Is it possible using x commands?&lt;/P&gt;</description>
      <pubDate>Mon, 17 Oct 2022 13:35:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-we-use-SAS-program-to-rename-the-file-name-in-a-folder/m-p/838971#M331720</guid>
      <dc:creator>SASuserlot</dc:creator>
      <dc:date>2022-10-17T13:35:20Z</dc:date>
    </item>
    <item>
      <title>Re: Can we use  SAS program  to rename the file name in a folder</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-we-use-SAS-program-to-rename-the-file-name-in-a-folder/m-p/838972#M331721</link>
      <description>&lt;P&gt;Of course, with X-command or CALL SYSTEM.&lt;/P&gt;
&lt;P&gt;Unless your SAS administrator has disabled that functionality in the configuration file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;option XCMD enables the X command in SAS.&lt;/P&gt;
&lt;P&gt;option noXCMD disables the X command in SAS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Mon, 17 Oct 2022 13:40:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-we-use-SAS-program-to-rename-the-file-name-in-a-folder/m-p/838972#M331721</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2022-10-17T13:40:55Z</dc:date>
    </item>
    <item>
      <title>Re: Can we use  SAS program  to rename the file name in a folder</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-we-use-SAS-program-to-rename-the-file-name-in-a-folder/m-p/838974#M331722</link>
      <description>&lt;P&gt;Thank you, if possible can you please give me an example how to rename&amp;nbsp; a file using x command using SAS. I am not that great with he x commands in SAS. in the following scenario&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Folder: "c\documents\study&lt;/P&gt;
&lt;P&gt;Old filename: stdy_details.xlsx&lt;/P&gt;
&lt;P&gt;New Name: Stdy2022.xlsx&lt;/P&gt;</description>
      <pubDate>Mon, 17 Oct 2022 13:52:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-we-use-SAS-program-to-rename-the-file-name-in-a-folder/m-p/838974#M331722</guid>
      <dc:creator>SASuserlot</dc:creator>
      <dc:date>2022-10-17T13:52:04Z</dc:date>
    </item>
    <item>
      <title>Re: Can we use  SAS program  to rename the file name in a folder</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-we-use-SAS-program-to-rename-the-file-name-in-a-folder/m-p/838976#M331723</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;*proc options; *run;

options noxwait;
x 'cd C:\documents\study';
x 'ren stdy_details.xlsx Stdy2022.xlsx';
/* end of program */&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Mon, 17 Oct 2022 14:06:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-we-use-SAS-program-to-rename-the-file-name-in-a-folder/m-p/838976#M331723</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2022-10-17T14:06:03Z</dc:date>
    </item>
    <item>
      <title>Re: Can we use  SAS program  to rename the file name in a folder</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-we-use-SAS-program-to-rename-the-file-name-in-a-folder/m-p/838979#M331724</link>
      <description>&lt;P&gt;Thank you. It worked for me.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Oct 2022 14:18:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-we-use-SAS-program-to-rename-the-file-name-in-a-folder/m-p/838979#M331724</guid>
      <dc:creator>SASuserlot</dc:creator>
      <dc:date>2022-10-17T14:18:09Z</dc:date>
    </item>
  </channel>
</rss>

