<?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 the different dataset into different excel sheets in to o in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-export-the-different-dataset-into-different-excel-sheets/m-p/5147#M2083</link>
    <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
 if you do not have any licenses for export to Excel you can create XML files that Excel can reads (with multiple sheets)&lt;BR /&gt;
  Basic information you can find on &lt;BR /&gt;
&lt;A href="http://support.sas.com/rnd/base/topics/odsmarkup/tableeditor/index.html" target="_blank"&gt;http://support.sas.com/rnd/base/topics/odsmarkup/tableeditor/index.html&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
 Remark: for a lot of data these files will be huge ! !&lt;BR /&gt;
&lt;BR /&gt;
a quick example could be: ( you need the file tableeditor.tpl' that you can find in the URL mentioned above&lt;BR /&gt;
=============================================================================&lt;BR /&gt;
&lt;BR /&gt;
%include 'c:\temp\tableeditor.tpl';&lt;BR /&gt;
ods tagsets.tableeditor file="c:\temp\export_naar_excel.html"&lt;BR /&gt;
style=styles.mystyle&lt;BR /&gt;
options(excel_zoom="90"&lt;BR /&gt;
excel_scale="90"&lt;BR /&gt;
excel_autofilter="yes"&lt;BR /&gt;
excel_frozen_headers="yes"&lt;BR /&gt;
excel_orientation="landscape"&lt;BR /&gt;
sheet_name="first,second,third"&lt;BR /&gt;
excel_table_move="1,2,3"&lt;BR /&gt;
auto_format="color1"&lt;BR /&gt;
excel_save_file="c:\\  temp.xls"&lt;BR /&gt;
);&lt;BR /&gt;
proc print data=sashelp.class;&lt;BR /&gt;
run;&lt;BR /&gt;
proc report data=sashelp.class nowd;&lt;BR /&gt;
run;&lt;BR /&gt;
proc print data=sashelp.orsales;&lt;BR /&gt;
run;&lt;BR /&gt;
ods tagsets.tableeditor close; &lt;BR /&gt;
 &lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
 best regards,&lt;BR /&gt;
 Mark Roosen</description>
    <pubDate>Tue, 23 Oct 2007 06:45:08 GMT</pubDate>
    <dc:creator>MarkRoosen</dc:creator>
    <dc:date>2007-10-23T06:45:08Z</dc:date>
    <item>
      <title>How to export the different dataset into different excel sheets in to one</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-export-the-different-dataset-into-different-excel-sheets/m-p/5145#M2081</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
Any one knows how to export different data sets in to one Excel file in different sheets &lt;BR /&gt;
its urgent plz if anyone knows the answer &lt;BR /&gt;
thanks&lt;BR /&gt;
srinu</description>
      <pubDate>Mon, 22 Oct 2007 11:07:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-export-the-different-dataset-into-different-excel-sheets/m-p/5145#M2081</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2007-10-22T11:07:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to export the different dataset into different excel sheets in to one</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-export-the-different-dataset-into-different-excel-sheets/m-p/5146#M2082</link>
      <description>The method that you use for this will depend on whether you're using PROC EXPORT or the LIBNAME engine for Excel and whether you have SAS/Access for PC File Formats installed.&lt;BR /&gt;
 &lt;BR /&gt;
Your best bet for help with this task is to contact Tech Support.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Mon, 22 Oct 2007 15:46:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-export-the-different-dataset-into-different-excel-sheets/m-p/5146#M2082</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2007-10-22T15:46:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to export the different dataset into different excel sheets in to o</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-export-the-different-dataset-into-different-excel-sheets/m-p/5147#M2083</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
 if you do not have any licenses for export to Excel you can create XML files that Excel can reads (with multiple sheets)&lt;BR /&gt;
  Basic information you can find on &lt;BR /&gt;
&lt;A href="http://support.sas.com/rnd/base/topics/odsmarkup/tableeditor/index.html" target="_blank"&gt;http://support.sas.com/rnd/base/topics/odsmarkup/tableeditor/index.html&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
 Remark: for a lot of data these files will be huge ! !&lt;BR /&gt;
&lt;BR /&gt;
a quick example could be: ( you need the file tableeditor.tpl' that you can find in the URL mentioned above&lt;BR /&gt;
=============================================================================&lt;BR /&gt;
&lt;BR /&gt;
%include 'c:\temp\tableeditor.tpl';&lt;BR /&gt;
ods tagsets.tableeditor file="c:\temp\export_naar_excel.html"&lt;BR /&gt;
style=styles.mystyle&lt;BR /&gt;
options(excel_zoom="90"&lt;BR /&gt;
excel_scale="90"&lt;BR /&gt;
excel_autofilter="yes"&lt;BR /&gt;
excel_frozen_headers="yes"&lt;BR /&gt;
excel_orientation="landscape"&lt;BR /&gt;
sheet_name="first,second,third"&lt;BR /&gt;
excel_table_move="1,2,3"&lt;BR /&gt;
auto_format="color1"&lt;BR /&gt;
excel_save_file="c:\\  temp.xls"&lt;BR /&gt;
);&lt;BR /&gt;
proc print data=sashelp.class;&lt;BR /&gt;
run;&lt;BR /&gt;
proc report data=sashelp.class nowd;&lt;BR /&gt;
run;&lt;BR /&gt;
proc print data=sashelp.orsales;&lt;BR /&gt;
run;&lt;BR /&gt;
ods tagsets.tableeditor close; &lt;BR /&gt;
 &lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
 best regards,&lt;BR /&gt;
 Mark Roosen</description>
      <pubDate>Tue, 23 Oct 2007 06:45:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-export-the-different-dataset-into-different-excel-sheets/m-p/5147#M2083</guid>
      <dc:creator>MarkRoosen</dc:creator>
      <dc:date>2007-10-23T06:45:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to export the different dataset into different excel sheets in to one</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-export-the-different-dataset-into-different-excel-sheets/m-p/5148#M2084</link>
      <description>Here is an exmaple I always use:&lt;BR /&gt;
&lt;BR /&gt;
Libname in &lt;YOUR input="" dataset=""&gt;;&lt;BR /&gt;
&lt;BR /&gt;
Filename odsout &lt;PATH and="" name="" of="" your="" outputexcel="" workbook=""&gt;&lt;BR /&gt;
&lt;BR /&gt;
ods listing close; run;&lt;BR /&gt;
ods tagset.excelXP file=odsout  &lt;OPTIONS&gt;;&lt;BR /&gt;
proc print data=in.one ;&lt;BR /&gt;
run;&lt;BR /&gt;
ods tagset.excelXP  &lt;OPTIONS&gt;; &lt;BR /&gt;
proc print data=in.two;&lt;BR /&gt;
Run;&lt;BR /&gt;
ods tagset.excelXP  &lt;OPTIONS&gt;; &lt;BR /&gt;
proc report data=in.three;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;MORE ods="" for="" more="" output="" sheet="" from="" different="" datasets=""&gt;....&lt;BR /&gt;
ods _all_ close; run;&lt;BR /&gt;
ods losting; run;&lt;BR /&gt;
 The trick is for each seperate sheet, you need a ods statement. However, only the 1st ods statement define the output( file=odsout). If every ods statment has a file statement, then it will be overwritten by the next ods with (file=).&lt;BR /&gt;
If you want each sheet to have a different sheet name, then use the sheet_name="&lt;NAME&gt;" as the ODS option.&lt;BR /&gt;
&lt;BR /&gt;
Hope this help.&lt;BR /&gt;
&lt;BR /&gt;
Regards&lt;BR /&gt;
David&lt;/NAME&gt;&lt;/MORE&gt;&lt;/OPTIONS&gt;&lt;/OPTIONS&gt;&lt;/OPTIONS&gt;&lt;/PATH&gt;&lt;/YOUR&gt;</description>
      <pubDate>Tue, 30 Oct 2007 12:21:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-export-the-different-dataset-into-different-excel-sheets/m-p/5148#M2084</guid>
      <dc:creator>Kwok</dc:creator>
      <dc:date>2007-10-30T12:21:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to export the different dataset into different excel sheets in to one</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-export-the-different-dataset-into-different-excel-sheets/m-p/5149#M2085</link>
      <description>I am also trying to move data from SAS into an Excel 2003 workbook. The workbook is pre-defined and fairly complex. The current process uses ADO and VBA code to populate the data. This process is slow on our server , si I have been experimenting with alternates. I would need to populate defined Excel named ranges and am trying to avoid the R1C1 format for flexability.&lt;BR /&gt;
&lt;BR /&gt;
The Excel Libname Engine sounds like it should work, but is corrupting the workbook. Here is the sample code. &lt;BR /&gt;
&lt;BR /&gt;
Libname XLSLib clear;&lt;BR /&gt;
Libname XLSLib Excel "&amp;amp;XLSFile2." SCAN_TEXT=NO Header=NO VER=2002;&lt;BR /&gt;
&lt;BR /&gt;
Proc SQL NOPRINT;&lt;BR /&gt;
&lt;BR /&gt;
	Create Table Work.Tmp99 as&lt;BR /&gt;
	   Select 0 as F1&lt;BR /&gt;
	     From SD.Dual as dTHRw&lt;BR /&gt;
	   Union All &lt;BR /&gt;
	   Select 0 as F1&lt;BR /&gt;
	     From SD.Dual as dDDDW&lt;BR /&gt;
	   Union All&lt;BR /&gt;
	   Select Count(*)  as F1&lt;BR /&gt;
	     From Work.Tmp01&lt;BR /&gt;
	   Union All&lt;BR /&gt;
	   Select Count(*) as F1&lt;BR /&gt;
	     From Work.tmp02&lt;BR /&gt;
	   Union All&lt;BR /&gt;
	   Select Count(*) as F1&lt;BR /&gt;
	     From Work.tmp03&lt;BR /&gt;
&lt;BR /&gt;
Quit;&lt;BR /&gt;
&lt;BR /&gt;
Proc append&lt;BR /&gt;
	 Base = XLSLib.Counters&lt;BR /&gt;
	 Data = Work.Tmp99;&lt;BR /&gt;
Run;&lt;BR /&gt;
&lt;BR /&gt;
Libname XLSLib clear;&lt;BR /&gt;
&lt;BR /&gt;
Any ideas? Is the Range option available in ODS?&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Tom</description>
      <pubDate>Wed, 31 Oct 2007 14:55:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-export-the-different-dataset-into-different-excel-sheets/m-p/5149#M2085</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2007-10-31T14:55:04Z</dc:date>
    </item>
  </channel>
</rss>

