<?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 large dataset into multiple sheets in same excel in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-export-a-large-dataset-into-multiple-sheets-in-same-excel/m-p/646638#M193472</link>
    <description>&lt;P&gt;Also could run multiple RPOC EXPORT (write a macro to wrap it)&lt;BR /&gt;&lt;BR /&gt;proc export data=have(obs=500) outfile='c:\temp\want.xlsx' dbms=xlsx replace;&lt;BR /&gt;sheet='1-500';&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;proc export data=have(firstobs=501 obs=1000) outfile='c:\temp\want.xlsx' dbms=xlsx replace;&lt;BR /&gt;sheet='501-1000';&lt;BR /&gt;run;&lt;BR /&gt;...............&lt;/P&gt;</description>
    <pubDate>Mon, 11 May 2020 11:24:56 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2020-05-11T11:24:56Z</dc:date>
    <item>
      <title>How to export a large dataset into multiple sheets in same excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-export-a-large-dataset-into-multiple-sheets-in-same-excel/m-p/646524#M193435</link>
      <description>&lt;P&gt;I do have one dataset having 10,000 observations. Here i need to export 500 observations each sheet in same excel file.&lt;/P&gt;</description>
      <pubDate>Sun, 10 May 2020 16:23:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-export-a-large-dataset-into-multiple-sheets-in-same-excel/m-p/646524#M193435</guid>
      <dc:creator>Balaji_7992</dc:creator>
      <dc:date>2020-05-10T16:23:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to export a large dataset into multiple sheets in same excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-export-a-large-dataset-into-multiple-sheets-in-same-excel/m-p/646526#M193436</link>
      <description>&lt;P&gt;Create a variable (which I shall name GROUP) such that the first 500 records have value 1, and the next 500 have value 2, and so on; and then do PROC PRINT with a BY statement and use the ODS EXCEL option sheet_interval='BYGROUP'&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods excel file='myexcelfilename.xlsx' options(sheet_interval="BYGROUP");
proc print data=have;
    by group;
run;
ods excel close&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;or, thinking out of the box, make your life easy, don't split the data up like this, which is much easier to do, and probably much easier on whoever is going to receive this Excel file as well.&lt;/P&gt;</description>
      <pubDate>Sun, 10 May 2020 16:35:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-export-a-large-dataset-into-multiple-sheets-in-same-excel/m-p/646526#M193436</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-05-10T16:35:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to export a large dataset into multiple sheets in same excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-export-a-large-dataset-into-multiple-sheets-in-same-excel/m-p/646638#M193472</link>
      <description>&lt;P&gt;Also could run multiple RPOC EXPORT (write a macro to wrap it)&lt;BR /&gt;&lt;BR /&gt;proc export data=have(obs=500) outfile='c:\temp\want.xlsx' dbms=xlsx replace;&lt;BR /&gt;sheet='1-500';&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;proc export data=have(firstobs=501 obs=1000) outfile='c:\temp\want.xlsx' dbms=xlsx replace;&lt;BR /&gt;sheet='501-1000';&lt;BR /&gt;run;&lt;BR /&gt;...............&lt;/P&gt;</description>
      <pubDate>Mon, 11 May 2020 11:24:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-export-a-large-dataset-into-multiple-sheets-in-same-excel/m-p/646638#M193472</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2020-05-11T11:24:56Z</dc:date>
    </item>
  </channel>
</rss>

