<?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: A question about sas data export in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/A-question-about-sas-data-export/m-p/146094#M29086</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'd rather do&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Data MyLib.Have;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; Set Have; &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Dec 2014 15:16:57 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2014-12-11T15:16:57Z</dc:date>
    <item>
      <title>A question about sas data export</title>
      <link>https://communities.sas.com/t5/SAS-Programming/A-question-about-sas-data-export/m-p/146090#M29082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I run a sas program and want to save the final table in sas format. So I can use the sas file directly in the future. How to save this table in sas format?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I cannot save it in sas format, I can export this table into a CSV file. But I encounter a problem in the CSV file. For example,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;SPAN style="text-decoration: underline;"&gt;SAS Fomat&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="text-decoration: underline;"&gt;CSV&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;CUSIP&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CUSIP&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;000888999&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 888999&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;00088E104&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 8.8E+105&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;....&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Then I import the CSV file into sas and cannot the result in the original SAS format. How to solve this problem? Thanks&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2014 08:43:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/A-question-about-sas-data-export/m-p/146090#M29082</guid>
      <dc:creator>ZZB</dc:creator>
      <dc:date>2014-12-11T08:43:07Z</dc:date>
    </item>
    <item>
      <title>Re: A question about sas data export</title>
      <link>https://communities.sas.com/t5/SAS-Programming/A-question-about-sas-data-export/m-p/146091#M29083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your final table is a SAS dataset you could create a permanent SAS-library (in case you are using the Enterprise Guide, there is an export button).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your final table is the output of a procedure you could use the Output Delivery System-Output to get the procedure result and store it (in a library).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2014 10:48:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/A-question-about-sas-data-export/m-p/146091#M29083</guid>
      <dc:creator>user24feb</dc:creator>
      <dc:date>2014-12-11T10:48:25Z</dc:date>
    </item>
    <item>
      <title>Re: A question about sas data export</title>
      <link>https://communities.sas.com/t5/SAS-Programming/A-question-about-sas-data-export/m-p/146092#M29084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I use sas 9.3 Not the Enterprise version. How to export the SAS dataset by creating a permanent SAS-library?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The enterprise version only displays the first 50 tables but the final table is beyond 50th.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2014 13:42:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/A-question-about-sas-data-export/m-p/146092#M29084</guid>
      <dc:creator>ZZB</dc:creator>
      <dc:date>2014-12-11T13:42:26Z</dc:date>
    </item>
    <item>
      <title>Re: A question about sas data export</title>
      <link>https://communities.sas.com/t5/SAS-Programming/A-question-about-sas-data-export/m-p/146093#M29085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use either in Enterprise Guide: Click on your data file &amp;gt; Enterprise menu: "File" &amp;gt; "Export" &amp;gt; "Export &amp;lt;Filename&amp;gt;" &amp;gt; choose a directory and make sure that the "Files of type" is "Sas data file ..".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or use code. This example "copies" the work file "A" to a folder:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;* this is a work-file (non-permanent);&lt;BR /&gt;Data Have;&lt;BR /&gt;&amp;nbsp; Do i=1 To 10 ; Output; End;&lt;BR /&gt;Run;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Libname MyLib "C:\Users\USERNAME\Desktop\SAS folder"; * check the path and make sure the folder exists - create manually :smileyalert: if necessary;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Data Have; * "copy" the work file to the library;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; Set MyLib.Have; &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.. hope it helps &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2014 13:54:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/A-question-about-sas-data-export/m-p/146093#M29085</guid>
      <dc:creator>user24feb</dc:creator>
      <dc:date>2014-12-11T13:54:06Z</dc:date>
    </item>
    <item>
      <title>Re: A question about sas data export</title>
      <link>https://communities.sas.com/t5/SAS-Programming/A-question-about-sas-data-export/m-p/146094#M29086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'd rather do&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Data MyLib.Have;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; Set Have; &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2014 15:16:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/A-question-about-sas-data-export/m-p/146094#M29086</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2014-12-11T15:16:57Z</dc:date>
    </item>
    <item>
      <title>Re: A question about sas data export</title>
      <link>https://communities.sas.com/t5/SAS-Programming/A-question-about-sas-data-export/m-p/146095#M29087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Look for the step that produces your final dataset in the code and then alter the data .....; statement or the out= (if it is some other procedure) so that the dataset is created in a permanent library instead of work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2014 15:18:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/A-question-about-sas-data-export/m-p/146095#M29087</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2014-12-11T15:18:43Z</dc:date>
    </item>
    <item>
      <title>Re: A question about sas data export</title>
      <link>https://communities.sas.com/t5/SAS-Programming/A-question-about-sas-data-export/m-p/146096#M29088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;You're right, that was silly.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Data MyLib.Have;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Set Have; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;it is.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2014 15:29:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/A-question-about-sas-data-export/m-p/146096#M29088</guid>
      <dc:creator>user24feb</dc:creator>
      <dc:date>2014-12-11T15:29:07Z</dc:date>
    </item>
    <item>
      <title>Re: A question about sas data export</title>
      <link>https://communities.sas.com/t5/SAS-Programming/A-question-about-sas-data-export/m-p/146097#M29089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And just related to the appearance: Be very careful opening CSV files in Excel (and likely some other spreadsheets) as it tries to be "helpful" and treats what you thought was a character 0008899 as a numeric. If you save the file from Excel will change the actual value.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2014 16:50:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/A-question-about-sas-data-export/m-p/146097#M29089</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2014-12-11T16:50:33Z</dc:date>
    </item>
  </channel>
</rss>

