<?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: Copy and rename a file into another folder in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Copy-and-rename-a-file-into-another-folder/m-p/394564#M277938</link>
    <description>&lt;P&gt;Forget the question for a second.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Show us the two libname statements to the folders you need.&lt;/P&gt;</description>
    <pubDate>Mon, 11 Sep 2017 04:01:45 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2017-09-11T04:01:45Z</dc:date>
    <item>
      <title>Copy and rename a file into another folder</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Copy-and-rename-a-file-into-another-folder/m-p/394560#M277935</link>
      <description>&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;I am supposed to use one DATA statement&amp;nbsp;and 2 LIBNAME steps&amp;nbsp;&lt;SPAN&gt;to copy the SAS data set in the ‘1 – Source’ folder named ‘ndi’ into the ‘2 – Tabulations’ folder as a data set named ‘Src_ndi’. I am confused exactly how to do this with these specific steps.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2017 03:47:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Copy-and-rename-a-file-into-another-folder/m-p/394560#M277935</guid>
      <dc:creator>marianhabesland</dc:creator>
      <dc:date>2017-09-11T03:47:48Z</dc:date>
    </item>
    <item>
      <title>Re: Copy and rename a file into another folder</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Copy-and-rename-a-file-into-another-folder/m-p/394562#M277936</link>
      <description>&lt;P&gt;I suspect this is homework, so I"m going to ask, what exactly is the question and which part specifically are you having difficulty with?&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2017 03:49:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Copy-and-rename-a-file-into-another-folder/m-p/394562#M277936</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-09-11T03:49:47Z</dc:date>
    </item>
    <item>
      <title>Re: Copy and rename a file into another folder</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Copy-and-rename-a-file-into-another-folder/m-p/394563#M277937</link>
      <description>&lt;P&gt;This is the complete question:&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;Task:&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;Within the Hypertension Study, use the DATA step to copy the SAS data set in the ‘1 – Source’ folder named ‘ndi’ into the ‘2 – Tabulations’ folder as a data set named ‘Src_ndi’ (per the ‘Hypertension Study – Data Map.xlsx’ file).&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;Note:&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;Your code should include 2 LIBNAME statements and 1 DATA step.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;I am struggling how I combine the LIBNAME statements&amp;nbsp;and DATA steps to actually both copy and move the file&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;The specific locations of the folders I am trying to&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;Trying to move file from: &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;/folders/myfolders/BIOS6680/Hypertension Study/1 -&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&lt;/SPAN&gt;Data;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;TO&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;/folders/myfolders/BIOS6680/Hypertension Study/1 - Data/2 - Tabulations;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2017 03:56:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Copy-and-rename-a-file-into-another-folder/m-p/394563#M277937</guid>
      <dc:creator>marianhabesland</dc:creator>
      <dc:date>2017-09-11T03:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: Copy and rename a file into another folder</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Copy-and-rename-a-file-into-another-folder/m-p/394564#M277938</link>
      <description>&lt;P&gt;Forget the question for a second.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Show us the two libname statements to the folders you need.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2017 04:01:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Copy-and-rename-a-file-into-another-folder/m-p/394564#M277938</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-09-11T04:01:45Z</dc:date>
    </item>
    <item>
      <title>Re: Copy and rename a file into another folder</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Copy-and-rename-a-file-into-another-folder/m-p/394565#M277939</link>
      <description>&lt;P class="p1"&gt;These are the statements I initially tried, but am unsure if this is what I was supposed to do&lt;/P&gt;&lt;P class="p1"&gt;LIBNAME Source /folders/myfolders/BIOS6680/Hypertension Study/1 - Data/1 - Source&lt;BR /&gt;LIBNAME Tabs /folders/myfolders/BIOS6680/Hypertension Study/1 - Data/2 - Tabulations&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2017 04:12:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Copy-and-rename-a-file-into-another-folder/m-p/394565#M277939</guid>
      <dc:creator>marianhabesland</dc:creator>
      <dc:date>2017-09-11T04:12:57Z</dc:date>
    </item>
    <item>
      <title>Re: Copy and rename a file into another folder</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Copy-and-rename-a-file-into-another-folder/m-p/394566#M277940</link>
      <description>&lt;P class="p1"&gt;EDIT&lt;/P&gt;&lt;P class="p1"&gt;These are the statements I initially tried, but am unsure if this is what I was supposed to do&lt;/P&gt;&lt;P class="p1"&gt;LIBNAME Source /folders/myfolders/BIOS6680/Hypertension Study/1 - Data/1 - Source;&lt;BR /&gt;LIBNAME Tabs /folders/myfolders/BIOS6680/Hypertension Study/1 - Data/2 - Tabulations;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2017 04:19:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Copy-and-rename-a-file-into-another-folder/m-p/394566#M277940</guid>
      <dc:creator>marianhabesland</dc:creator>
      <dc:date>2017-09-11T04:19:24Z</dc:date>
    </item>
    <item>
      <title>Re: Copy and rename a file into another folder</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Copy-and-rename-a-file-into-another-folder/m-p/394569#M277941</link>
      <description>&lt;P&gt;That's not correct. The paths need to be quoted.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you run the code I assume you're still getting errors. I need to sleep now but if you search on here re 'permanent sas data sets' you'll find lots of examples.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Other good resources:&lt;/P&gt;
&lt;P&gt;videos.sas.com -&amp;gt; how to section&amp;nbsp;&lt;/P&gt;
&lt;P&gt;lexjansen.com -&amp;gt; search any topic for user written papers&lt;/P&gt;
&lt;P&gt;here -&amp;gt; the Analytics U forum has a lot of beginner related questions and answers&lt;/P&gt;
&lt;P&gt;SAS UE Help Centre&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2017 05:09:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Copy-and-rename-a-file-into-another-folder/m-p/394569#M277941</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-09-11T05:09:04Z</dc:date>
    </item>
    <item>
      <title>Re: Copy and rename a file into another folder</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Copy-and-rename-a-file-into-another-folder/m-p/394571#M277942</link>
      <description>&lt;P class="p1"&gt;libname source "&lt;SPAN class="s1"&gt;/folders/myfolders/BIOS6680/Hypertension Study/1 -&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&lt;/SPAN&gt;Data";&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;libname target "&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;/folders/myfolders/BIOS6680/Hypertension Study/1 - Data/2 - Tabulations";&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;data &lt;SPAN&gt;target.&lt;/SPAN&gt;SRC_NDI;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&amp;nbsp; set &lt;SPAN&gt;source.&lt;/SPAN&gt;NDI.;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2017 06:52:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Copy-and-rename-a-file-into-another-folder/m-p/394571#M277942</guid>
      <dc:creator>ShiroAmada</dc:creator>
      <dc:date>2017-09-11T06:52:30Z</dc:date>
    </item>
  </channel>
</rss>

