<?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: Using ODS to send to EXCEL in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Using-ODS-to-send-to-EXCEL/m-p/5815#M2353</link>
    <description>Hi:&lt;BR /&gt;
  Two easy things to do are&lt;BR /&gt;
1) use FIRSTOBS= and OBS= to split up the data using TAGSETS.EXCELXP to create the multiple sheets (you could even "macroize" whether the data needed to be split up or not, but the program below shows a simple example, not a macroized one).&lt;BR /&gt;
OR&lt;BR /&gt;
2) use BY group processing to break the data into logical groups -- TAGSETS.EXCELXP will put every group into a separate sheet, by default. (of course, this assumes that no single by group is larger than the 65K limit)&lt;BR /&gt;
 &lt;BR /&gt;
cynthia&lt;BR /&gt;
[pre]&lt;BR /&gt;
**1) use FIRSTOBS= and OBS=;&lt;BR /&gt;
ods tagsets.excelxp file='c:\temp\split_file.xls';&lt;BR /&gt;
  &lt;BR /&gt;
proc print data=sashelp.class(firstobs=1 obs=7);&lt;BR /&gt;
run;&lt;BR /&gt;
  &lt;BR /&gt;
proc print data=sashelp.class(firstobs=8 obs=19);&lt;BR /&gt;
run;&lt;BR /&gt;
   &lt;BR /&gt;
ods tagsets.excelxp close;&lt;BR /&gt;
  &lt;BR /&gt;
  &lt;BR /&gt;
&lt;BR /&gt;
**2) Split into BY groups;&lt;BR /&gt;
ods tagsets.excelxp file='c:\temp\split_by.xls';&lt;BR /&gt;
     &lt;BR /&gt;
proc print data=sashelp.shoes;&lt;BR /&gt;
  where region in ('Asia', 'Canada', 'Pacific');&lt;BR /&gt;
  by region;&lt;BR /&gt;
  var region subsidiary product sales;&lt;BR /&gt;
run;&lt;BR /&gt;
  &lt;BR /&gt;
ods tagsets.excelxp close;&lt;BR /&gt;
[/pre]</description>
    <pubDate>Thu, 06 Dec 2007 23:16:17 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2007-12-06T23:16:17Z</dc:date>
    <item>
      <title>Using ODS to send to EXCEL</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Using-ODS-to-send-to-EXCEL/m-p/5814#M2352</link>
      <description>I am trying to create an Excel file using ODS.  My file contains 67647 rows.  My Excel file is truncated at 65536 rows.  Is there anyway to make the overflow go to the next tab in Excel??</description>
      <pubDate>Thu, 06 Dec 2007 16:50:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Using-ODS-to-send-to-EXCEL/m-p/5814#M2352</guid>
      <dc:creator>lloraine</dc:creator>
      <dc:date>2007-12-06T16:50:02Z</dc:date>
    </item>
    <item>
      <title>Re: Using ODS to send to EXCEL</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Using-ODS-to-send-to-EXCEL/m-p/5815#M2353</link>
      <description>Hi:&lt;BR /&gt;
  Two easy things to do are&lt;BR /&gt;
1) use FIRSTOBS= and OBS= to split up the data using TAGSETS.EXCELXP to create the multiple sheets (you could even "macroize" whether the data needed to be split up or not, but the program below shows a simple example, not a macroized one).&lt;BR /&gt;
OR&lt;BR /&gt;
2) use BY group processing to break the data into logical groups -- TAGSETS.EXCELXP will put every group into a separate sheet, by default. (of course, this assumes that no single by group is larger than the 65K limit)&lt;BR /&gt;
 &lt;BR /&gt;
cynthia&lt;BR /&gt;
[pre]&lt;BR /&gt;
**1) use FIRSTOBS= and OBS=;&lt;BR /&gt;
ods tagsets.excelxp file='c:\temp\split_file.xls';&lt;BR /&gt;
  &lt;BR /&gt;
proc print data=sashelp.class(firstobs=1 obs=7);&lt;BR /&gt;
run;&lt;BR /&gt;
  &lt;BR /&gt;
proc print data=sashelp.class(firstobs=8 obs=19);&lt;BR /&gt;
run;&lt;BR /&gt;
   &lt;BR /&gt;
ods tagsets.excelxp close;&lt;BR /&gt;
  &lt;BR /&gt;
  &lt;BR /&gt;
&lt;BR /&gt;
**2) Split into BY groups;&lt;BR /&gt;
ods tagsets.excelxp file='c:\temp\split_by.xls';&lt;BR /&gt;
     &lt;BR /&gt;
proc print data=sashelp.shoes;&lt;BR /&gt;
  where region in ('Asia', 'Canada', 'Pacific');&lt;BR /&gt;
  by region;&lt;BR /&gt;
  var region subsidiary product sales;&lt;BR /&gt;
run;&lt;BR /&gt;
  &lt;BR /&gt;
ods tagsets.excelxp close;&lt;BR /&gt;
[/pre]</description>
      <pubDate>Thu, 06 Dec 2007 23:16:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Using-ODS-to-send-to-EXCEL/m-p/5815#M2353</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2007-12-06T23:16:17Z</dc:date>
    </item>
    <item>
      <title>Re: Using ODS to send to EXCEL</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Using-ODS-to-send-to-EXCEL/m-p/5816#M2354</link>
      <description>If I use the following code to export  into ACCESS is there any problem with the number of rows of data?&lt;BR /&gt;
&lt;BR /&gt;
PROC EXPORT DATA = PS_CLASS_TBL&lt;BR /&gt;
OUTTABLE = "PS_CLASS_TBL"&lt;BR /&gt;
DBMS = ACCESS REPLACE;&lt;BR /&gt;
DATABASE = "C:\CRSE_FACULTY_GRADUATE.MDB";&lt;BR /&gt;
QUIT;</description>
      <pubDate>Thu, 06 Dec 2007 23:49:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Using-ODS-to-send-to-EXCEL/m-p/5816#M2354</guid>
      <dc:creator>lloraine</dc:creator>
      <dc:date>2007-12-06T23:49:00Z</dc:date>
    </item>
    <item>
      <title>Re: Using ODS to send to EXCEL</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Using-ODS-to-send-to-EXCEL/m-p/5817#M2355</link>
      <description>Hi:&lt;BR /&gt;
  I don't know the exact answer to that. According to this site:&lt;BR /&gt;
&lt;A href="http://office.microsoft.com/en-us/access/HA100307391033.aspx" target="_blank"&gt;http://office.microsoft.com/en-us/access/HA100307391033.aspx&lt;/A&gt;&lt;BR /&gt;
the limit for Microsoft Access tables is based on overall file size, not number of rows. (no more than 255 fields in the table with an overall file size of 2 gigabytes, minus the space needed for system objects).&lt;BR /&gt;
&lt;BR /&gt;
  You may want to run a test or double check with Tech Support on this one.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Fri, 07 Dec 2007 05:13:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Using-ODS-to-send-to-EXCEL/m-p/5817#M2355</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2007-12-07T05:13:55Z</dc:date>
    </item>
  </channel>
</rss>

