<?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 open .sas7bdat in SAS and export to excel? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-open-sas7bdat-in-SAS-and-export-to-excel/m-p/459592#M116755</link>
    <description>&lt;P&gt;Something like:&lt;/P&gt;
&lt;PRE&gt;libname tmp "c:/temp";

proc surveyselect data=tmp.stockprices
   method=srs n=10000 out=sample;
run;

proc export data=sample outfile="c:/temp/want.xlsx";
run;&lt;/PRE&gt;</description>
    <pubDate>Thu, 03 May 2018 10:19:11 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2018-05-03T10:19:11Z</dc:date>
    <item>
      <title>How to open .sas7bdat in SAS and export to excel?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-open-sas7bdat-in-SAS-and-export-to-excel/m-p/459572#M116741</link>
      <description>&lt;P&gt;I am quite new to SAS. I have got a file with file extension .sas7bdat which contains daily stocks prices and percentage changes. It has almost 2 million line items. I know that I can simply double click the file and open it with SAS 9.4. But, I am looking for codes which I can type in Editor and open this file. Please help me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After I open this file, I need to export it to excel. Since it has 2 million data, I can not export everything in a single excel tab. So, What I want to do it randomly pick (say 10,000 or 20,000) data and export only this randomly picked data to excel.&lt;/P&gt;&lt;P&gt;My .sas7bdat file is on desktop.&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;</description>
      <pubDate>Thu, 03 May 2018 08:58:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-open-sas7bdat-in-SAS-and-export-to-excel/m-p/459572#M116741</guid>
      <dc:creator>NUmsf</dc:creator>
      <dc:date>2018-05-03T08:58:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to open .sas7bdat in SAS and export to excel?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-open-sas7bdat-in-SAS-and-export-to-excel/m-p/459578#M116744</link>
      <description>&lt;P&gt;You should really look through the SAS online help videos and such like and learn SAS, as this is a step 1 learning question.&amp;nbsp; You point what is called a library reference to a folder which contains .sas7bdat files, then refer to the library and dataset name.&amp;nbsp; For instance if I had saved in c:/temp that file:&lt;/P&gt;
&lt;PRE&gt;libname tmp "c:/temp";

proc export data=tmp.stockprices outfile="c:/temp/want.xlsx";
run;
&lt;/PRE&gt;
&lt;P&gt;&lt;A href="http://video.sas.com/category/videos/how-to-tutorials" target="_blank"&gt;http://video.sas.com/category/videos/how-to-tutorials&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 May 2018 09:09:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-open-sas7bdat-in-SAS-and-export-to-excel/m-p/459578#M116744</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-05-03T09:09:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to open .sas7bdat in SAS and export to excel?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-open-sas7bdat-in-SAS-and-export-to-excel/m-p/459587#M116751</link>
      <description>But, if I have 2 million rows in that SAS file, how can I export to excel which allows only around 1 millions rows in a tab?</description>
      <pubDate>Thu, 03 May 2018 09:34:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-open-sas7bdat-in-SAS-and-export-to-excel/m-p/459587#M116751</guid>
      <dc:creator>NUmsf</dc:creator>
      <dc:date>2018-05-03T09:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to open .sas7bdat in SAS and export to excel?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-open-sas7bdat-in-SAS-and-export-to-excel/m-p/459589#M116753</link>
      <description>&lt;P&gt;You can't, if Excel has limits then that is the limit for that file.&amp;nbsp; Split the data, or use a better format for your data.&amp;nbsp; Obviously depends on what the data is for, not much point creating a report with 2mill records, so I assume this is for data transfer?&amp;nbsp; If so use CSV, plain text delimited format, can have unlimited rows, and can easily be read by the receiving party.&lt;/P&gt;</description>
      <pubDate>Thu, 03 May 2018 09:43:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-open-sas7bdat-in-SAS-and-export-to-excel/m-p/459589#M116753</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-05-03T09:43:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to open .sas7bdat in SAS and export to excel?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-open-sas7bdat-in-SAS-and-export-to-excel/m-p/459591#M116754</link>
      <description>Thanks. If you had read my first question completely, there you could read, "So, What I want to do it randomly pick (say 10,000 or 20,000) data and export only this randomly picked data to excel.". Any thoughts?</description>
      <pubDate>Thu, 03 May 2018 10:02:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-open-sas7bdat-in-SAS-and-export-to-excel/m-p/459591#M116754</guid>
      <dc:creator>NUmsf</dc:creator>
      <dc:date>2018-05-03T10:02:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to open .sas7bdat in SAS and export to excel?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-open-sas7bdat-in-SAS-and-export-to-excel/m-p/459592#M116755</link>
      <description>&lt;P&gt;Something like:&lt;/P&gt;
&lt;PRE&gt;libname tmp "c:/temp";

proc surveyselect data=tmp.stockprices
   method=srs n=10000 out=sample;
run;

proc export data=sample outfile="c:/temp/want.xlsx";
run;&lt;/PRE&gt;</description>
      <pubDate>Thu, 03 May 2018 10:19:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-open-sas7bdat-in-SAS-and-export-to-excel/m-p/459592#M116755</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-05-03T10:19:11Z</dc:date>
    </item>
  </channel>
</rss>

