<?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: How to export a SAS Dataset from SAS EG work folder to a folder on my hard drive in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-export-a-SAS-Dataset-from-SAS-EG-work-folder-to-a-folder/m-p/275461#M19098</link>
    <description>&lt;P&gt;It isn't usually referred to export, but saving a dataset.&amp;nbsp;You need to&amp;nbsp;assign a library to save&amp;nbsp;the data set.&lt;/P&gt;
&lt;P&gt;You can use PROC COPY, or a DATA/PROC SQL step to move the data to the library.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname out 'c:\user\homareau\PredictiveModels\Attrition\';

proc datasets library=work nodetails nolist;
copy in=work out=out;
select naics_bankrupt_2013;
run;quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If you're running SAS on a server with EG on teh server this may not work, since EG will not be able to see your desktop.&lt;/P&gt;
&lt;P&gt;In that case look for a TASK called Copy Files from Chris Hemindinger.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 06 Jun 2016 17:00:21 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2016-06-06T17:00:21Z</dc:date>
    <item>
      <title>How to export a SAS Dataset from SAS EG work folder to a folder on my hard drive</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-export-a-SAS-Dataset-from-SAS-EG-work-folder-to-a-folder/m-p/275431#M19092</link>
      <description>&lt;P&gt;I have a program file that exports individual Excel sheets as .csv files which represent a month of the year (12 total). &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In turn each of these .csv files are turned into a SAS dataset (again 12 total). &amp;nbsp;I then consolidate these monthly files into a single SAS dataset. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Question: Is there a line (or lines) of code I can add to my program file to automatically export my consolidated SAS dataset into a folder on my computer? &amp;nbsp;I tried PROC EXPORT but it wouldn't work since the DBMS option apparently doesn't apply to SAS datasets?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am new to SAS. &amp;nbsp;Any advice appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jun 2016 15:49:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-export-a-SAS-Dataset-from-SAS-EG-work-folder-to-a-folder/m-p/275431#M19092</guid>
      <dc:creator>Jack1</dc:creator>
      <dc:date>2016-06-06T15:49:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to export a SAS Dataset from SAS EG work folder to a folder on my hard drive</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-export-a-SAS-Dataset-from-SAS-EG-work-folder-to-a-folder/m-p/275434#M19093</link>
      <description>&lt;P&gt;What format do you want the dataset exported to?&lt;/P&gt;
&lt;P&gt;Some of the options for DBMS to specific databases such as Access, DB2, Teradata, Oracle and such require specific SAS/ACCESS modules loaded.&lt;/P&gt;
&lt;P&gt;If you want a generic CSV or similar file it should work.&lt;/P&gt;
&lt;P&gt;Please post the attempted Proc Export code for more targetted responses.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jun 2016 16:00:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-export-a-SAS-Dataset-from-SAS-EG-work-folder-to-a-folder/m-p/275434#M19093</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-06-06T16:00:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to export a SAS Dataset from SAS EG work folder to a folder on my hard drive</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-export-a-SAS-Dataset-from-SAS-EG-work-folder-to-a-folder/m-p/275436#M19094</link>
      <description>&lt;P&gt;I want to export the SAS dataset as a SAS dataset...&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jun 2016 16:02:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-export-a-SAS-Dataset-from-SAS-EG-work-folder-to-a-folder/m-p/275436#M19094</guid>
      <dc:creator>Jack1</dc:creator>
      <dc:date>2016-06-06T16:02:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to export a SAS Dataset from SAS EG work folder to a folder on my hard drive</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-export-a-SAS-Dataset-from-SAS-EG-work-folder-to-a-folder/m-p/275437#M19095</link>
      <description>&lt;P&gt;This is what I tried:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;proc export data=naics_bankrupt_2013 outfile='c:\user\homareau\PredictiveModels\Attrition\naics_bankrupt_2013.sas7bdat'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;dbms=?? (no option for a SAS dataset here?)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;label replace;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;run;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jun 2016 16:06:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-export-a-SAS-Dataset-from-SAS-EG-work-folder-to-a-folder/m-p/275437#M19095</guid>
      <dc:creator>Jack1</dc:creator>
      <dc:date>2016-06-06T16:06:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to export a SAS Dataset from SAS EG work folder to a folder on my hard drive</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-export-a-SAS-Dataset-from-SAS-EG-work-folder-to-a-folder/m-p/275461#M19098</link>
      <description>&lt;P&gt;It isn't usually referred to export, but saving a dataset.&amp;nbsp;You need to&amp;nbsp;assign a library to save&amp;nbsp;the data set.&lt;/P&gt;
&lt;P&gt;You can use PROC COPY, or a DATA/PROC SQL step to move the data to the library.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname out 'c:\user\homareau\PredictiveModels\Attrition\';

proc datasets library=work nodetails nolist;
copy in=work out=out;
select naics_bankrupt_2013;
run;quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If you're running SAS on a server with EG on teh server this may not work, since EG will not be able to see your desktop.&lt;/P&gt;
&lt;P&gt;In that case look for a TASK called Copy Files from Chris Hemindinger.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jun 2016 17:00:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-export-a-SAS-Dataset-from-SAS-EG-work-folder-to-a-folder/m-p/275461#M19098</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-06-06T17:00:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to export a SAS Dataset from SAS EG work folder to a folder on my hard drive</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-export-a-SAS-Dataset-from-SAS-EG-work-folder-to-a-folder/m-p/275478#M19099</link>
      <description>&lt;P&gt;Excellent Reeza! &amp;nbsp;Works like a charm. &amp;nbsp;Thanks again...Jack&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jun 2016 17:42:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-export-a-SAS-Dataset-from-SAS-EG-work-folder-to-a-folder/m-p/275478#M19099</guid>
      <dc:creator>Jack1</dc:creator>
      <dc:date>2016-06-06T17:42:36Z</dc:date>
    </item>
  </channel>
</rss>

