<?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 How to manage the output data well in SAS EG in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-manage-the-output-data-well-in-SAS-EG/m-p/715176#M220885</link>
    <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am new to SAS.&lt;/P&gt;&lt;P&gt;I mainly use SAS EG for my work because I am a novice to SAS. I am wondering where SAS stores the output after you ran code?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Apart from that, normally when running SAS, I want to export the output and afterwards, I will import such output to other SAS code to make sure that my code is not too long.&lt;/P&gt;&lt;P&gt;Traditionally, I use the export button and it leads me to save the file under sas7bdat or csv, or mdb, or txt format.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, I am not sure how to write the code to export this file under sas7bdat format and the code to import again rather than just export and import manually by using buttons&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or, I really appreciate if you can share any other solution from your experience by importing and exporting SAS output.&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;</description>
    <pubDate>Fri, 29 Jan 2021 05:55:27 GMT</pubDate>
    <dc:creator>ResoluteCarbon</dc:creator>
    <dc:date>2021-01-29T05:55:27Z</dc:date>
    <item>
      <title>How to manage the output data well in SAS EG</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-manage-the-output-data-well-in-SAS-EG/m-p/715176#M220885</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am new to SAS.&lt;/P&gt;&lt;P&gt;I mainly use SAS EG for my work because I am a novice to SAS. I am wondering where SAS stores the output after you ran code?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Apart from that, normally when running SAS, I want to export the output and afterwards, I will import such output to other SAS code to make sure that my code is not too long.&lt;/P&gt;&lt;P&gt;Traditionally, I use the export button and it leads me to save the file under sas7bdat or csv, or mdb, or txt format.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, I am not sure how to write the code to export this file under sas7bdat format and the code to import again rather than just export and import manually by using buttons&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or, I really appreciate if you can share any other solution from your experience by importing and exporting SAS output.&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jan 2021 05:55:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-manage-the-output-data-well-in-SAS-EG/m-p/715176#M220885</guid>
      <dc:creator>ResoluteCarbon</dc:creator>
      <dc:date>2021-01-29T05:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to manage the output data well in SAS EG</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-manage-the-output-data-well-in-SAS-EG/m-p/715190#M220895</link>
      <description>&lt;P&gt;Export&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname myfolder 'path to folder';
proc copy in=work out=myfolder;
select export_dataset;
run;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Check export dataset&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc print data=myfolder.export_dataset;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Import the export_dataset&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Libname input 'path to folder';

data want;

set input.export_dataset;

run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jan 2021 07:16:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-manage-the-output-data-well-in-SAS-EG/m-p/715190#M220895</guid>
      <dc:creator>Phil_NZ</dc:creator>
      <dc:date>2021-01-29T07:16:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to manage the output data well in SAS EG</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-manage-the-output-data-well-in-SAS-EG/m-p/715202#M220903</link>
      <description>&lt;P&gt;SAS datasets are already stored in files with a .sas7bdat extension, so there is no need to export. Just copy the files to the location where you want them.&lt;/P&gt;
&lt;P&gt;Exporting is necessary when you want to create "external files", like csv or spreadsheets.&lt;/P&gt;
&lt;P&gt;Text files (like csv) are written with a data step, Excel files can be created with PROC EXPORT or LIBNAME XLSX.&lt;/P&gt;
&lt;P&gt;Since your SAS session most probably runs on a remote server, you need to download the exported files, this is done with the Copy Files task in EG.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jan 2021 08:24:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-manage-the-output-data-well-in-SAS-EG/m-p/715202#M220903</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-01-29T08:24:10Z</dc:date>
    </item>
  </channel>
</rss>

