<?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 To save a table. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/To-save-a-table/m-p/16048#M2229</link>
    <description>I have created the table Mytable in a data step and want to save it to the directory C:\Mydir. I want to do the saving with code. &lt;BR /&gt;
&lt;BR /&gt;
How can that be done? &lt;BR /&gt;
Special procedure(s) or even possible in the data step itself?</description>
    <pubDate>Thu, 12 Nov 2009 18:55:09 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2009-11-12T18:55:09Z</dc:date>
    <item>
      <title>To save a table.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/To-save-a-table/m-p/16048#M2229</link>
      <description>I have created the table Mytable in a data step and want to save it to the directory C:\Mydir. I want to do the saving with code. &lt;BR /&gt;
&lt;BR /&gt;
How can that be done? &lt;BR /&gt;
Special procedure(s) or even possible in the data step itself?</description>
      <pubDate>Thu, 12 Nov 2009 18:55:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/To-save-a-table/m-p/16048#M2229</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-11-12T18:55:09Z</dc:date>
    </item>
    <item>
      <title>Re: To save a table.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/To-save-a-table/m-p/16049#M2230</link>
      <description>dont quite understand what you want. can you just create a library for this folder c:\mydir and create a dataset in that library?&lt;BR /&gt;
&lt;BR /&gt;
libname save 'c:\mydir';&lt;BR /&gt;
data save.mytable;&lt;BR /&gt;
 set mytable;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
is this what you wanted?</description>
      <pubDate>Thu, 12 Nov 2009 19:35:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/To-save-a-table/m-p/16049#M2230</guid>
      <dc:creator>abdullala</dc:creator>
      <dc:date>2009-11-12T19:35:39Z</dc:date>
    </item>
    <item>
      <title>Re: To save a table.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/To-save-a-table/m-p/16050#M2231</link>
      <description>Tables are physically stored into a single file in the system (usually with a .sas7bdat extension).&lt;BR /&gt;
&lt;BR /&gt;
So, if you're creating MyTable to dataset code, redirecting the output table to the desired libname (directory) should be enough and the simplest way.&lt;BR /&gt;
&lt;BR /&gt;
You could still use the COPY procedure to copy the dataset from one libname to another.&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/a000085782.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/a000085782.htm&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
Cheers from Portugal.&lt;BR /&gt;
&lt;BR /&gt;
Daniel Santos @ &lt;A href="http://www.cgd.pt" target="_blank"&gt;www.cgd.pt&lt;/A&gt;</description>
      <pubDate>Fri, 13 Nov 2009 08:30:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/To-save-a-table/m-p/16050#M2231</guid>
      <dc:creator>DanielSantos</dc:creator>
      <dc:date>2009-11-13T08:30:59Z</dc:date>
    </item>
  </channel>
</rss>

