<?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: To export multiple SAS datasets to single excel spreedsheet using UNIX SAS9 in Microsoft Integration with SAS</title>
    <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/To-export-multiple-SAS-datasets-to-single-excel-spreedsheet/m-p/72804#M982</link>
    <description>Hi:&lt;BR /&gt;
  If you have SAS/Access for PC File Formats, you could use the LIBNAME engine to access/create the workbook:&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/acpcref/59619/HTML/default/a002644677.htm#a002657063" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/acpcref/59619/HTML/default/a002644677.htm#a002657063&lt;/A&gt;&lt;BR /&gt;
(see example 2)&lt;BR /&gt;
 &lt;BR /&gt;
  Or, you can use TAGSETS.EXCELXP to create a Spreadsheet Markup Language file, which is the type of XML file used by Excel 2002 and higher to define a workbook. After the file is created, you would have to  FTP the file to a location where you could open the file with Excel. The file created by TAGSETS.EXCELXP is an ASCII text file. (the result of the doc='Help' is a list of allowed "suboptions" will be shown in the SAS Log)&lt;BR /&gt;
[pre]&lt;BR /&gt;
ods tagsets.excelxp file='multsheet.xml'&lt;BR /&gt;
    options(doc='Help');&lt;BR /&gt;
proc print data=sashelp.class(obs=5);&lt;BR /&gt;
run;&lt;BR /&gt;
                  &lt;BR /&gt;
proc print data=sashelp.shoes(obs=5);&lt;BR /&gt;
run;&lt;BR /&gt;
               &lt;BR /&gt;
proc print data=sashelp.prdsale(obs=5);&lt;BR /&gt;
run;&lt;BR /&gt;
              &lt;BR /&gt;
proc print data=sashelp.heart(obs=5);&lt;BR /&gt;
run;&lt;BR /&gt;
ods tagsets.excelxp close;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
                         &lt;BR /&gt;
This code would create the XML Spreadsheet Markup definition for a single workbook with 4 worksheets -- one for every PROC PRINT.&lt;BR /&gt;
       &lt;BR /&gt;
cynthia</description>
    <pubDate>Thu, 05 Feb 2009 18:59:10 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2009-02-05T18:59:10Z</dc:date>
    <item>
      <title>To export multiple SAS datasets to single excel spreedsheet using UNIX SAS9</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/To-export-multiple-SAS-datasets-to-single-excel-spreedsheet/m-p/72803#M981</link>
      <description>I want to export around 50 datasets to one excel sheet and each dataset should be exported to a new worksheet within the same excel sheet.In the end it should be one single excel sheet with 50 worksheets.&lt;BR /&gt;
But probs is I want this to be done using UNIX sas9. Can anyone help?&lt;BR /&gt;
&lt;BR /&gt;
Thanks in advance for any help.</description>
      <pubDate>Thu, 05 Feb 2009 15:36:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/To-export-multiple-SAS-datasets-to-single-excel-spreedsheet/m-p/72803#M981</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-02-05T15:36:30Z</dc:date>
    </item>
    <item>
      <title>Re: To export multiple SAS datasets to single excel spreedsheet using UNIX SAS9</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/To-export-multiple-SAS-datasets-to-single-excel-spreedsheet/m-p/72804#M982</link>
      <description>Hi:&lt;BR /&gt;
  If you have SAS/Access for PC File Formats, you could use the LIBNAME engine to access/create the workbook:&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/acpcref/59619/HTML/default/a002644677.htm#a002657063" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/acpcref/59619/HTML/default/a002644677.htm#a002657063&lt;/A&gt;&lt;BR /&gt;
(see example 2)&lt;BR /&gt;
 &lt;BR /&gt;
  Or, you can use TAGSETS.EXCELXP to create a Spreadsheet Markup Language file, which is the type of XML file used by Excel 2002 and higher to define a workbook. After the file is created, you would have to  FTP the file to a location where you could open the file with Excel. The file created by TAGSETS.EXCELXP is an ASCII text file. (the result of the doc='Help' is a list of allowed "suboptions" will be shown in the SAS Log)&lt;BR /&gt;
[pre]&lt;BR /&gt;
ods tagsets.excelxp file='multsheet.xml'&lt;BR /&gt;
    options(doc='Help');&lt;BR /&gt;
proc print data=sashelp.class(obs=5);&lt;BR /&gt;
run;&lt;BR /&gt;
                  &lt;BR /&gt;
proc print data=sashelp.shoes(obs=5);&lt;BR /&gt;
run;&lt;BR /&gt;
               &lt;BR /&gt;
proc print data=sashelp.prdsale(obs=5);&lt;BR /&gt;
run;&lt;BR /&gt;
              &lt;BR /&gt;
proc print data=sashelp.heart(obs=5);&lt;BR /&gt;
run;&lt;BR /&gt;
ods tagsets.excelxp close;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
                         &lt;BR /&gt;
This code would create the XML Spreadsheet Markup definition for a single workbook with 4 worksheets -- one for every PROC PRINT.&lt;BR /&gt;
       &lt;BR /&gt;
cynthia</description>
      <pubDate>Thu, 05 Feb 2009 18:59:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/To-export-multiple-SAS-datasets-to-single-excel-spreedsheet/m-p/72804#M982</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2009-02-05T18:59:10Z</dc:date>
    </item>
  </channel>
</rss>

