<?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: ods excell multiple sheets with tables horizontaly in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ods-excell-multiple-sheets-with-tables-horizontaly/m-p/424498#M20089</link>
    <description>&lt;P&gt;TAGSETS is fairly generic term and there are several tagsets in SAS, primarily EXCELXP.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You aren't creating an Excel file, you're creating HTML files that are linked but if that's what you want :).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ODS EXCEL can do a portion of what you want, but not side by side graphs.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can control where the output starts.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It's not stated but your code includes a graph but no side by side tables?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If your requirements are includes graphs, multiple sheets AND side by side graphs then your best bet is the approach you've taken.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you don't need graphs then I would recommend an entirely different approach since you're not showing side by side tables that I can see. You don't seem to be using any of the other tagset features besides the multi sheet, in that case using either an PROC EXPORT or the macro here maybe more useful.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.sascommunity.org/wiki/A_Poor/Rich_SAS_Users_Proc_Export" target="_blank"&gt;http://www.sascommunity.org/wiki/A_Poor/Rich_SAS_Users_Proc_Export&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that you only need to run this session once and then never again.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;FONT size="2"&gt;&lt;CODE&gt;filename temp url "http://support.sas.com/rnd/base/ods/odsmarkup/msoffice2k/msoffice2k_x.sas";                &lt;BR /&gt;%include temp; &lt;/CODE&gt;&lt;/FONT&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you don't need side by side tables, but do need graphs and tables and multi-sheet then I would say use ODS EXCEL.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/137438"&gt;@xThylx&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm trying to create a report containing multiple sheets and with tables side by side in one sheet. From what i read so far, best way is to use tagsets because normally ods excell will overwrite the sheet where i try to put tables horizontally. Tagsets on the other hand have problems with multiple sheets, so i need to make the sheets in html format and then link them as sources of sheets(like in the code below)?&lt;/P&gt;
&lt;P&gt;Is this the best way to do this?&lt;/P&gt;
&lt;P&gt;I managed to do it in batch mode but when i try to open the excell file i get the message that the&amp;nbsp;path to htmls is wrong.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How to&amp;nbsp;set path to htmls so the excell can be just copied between systems?&lt;/P&gt;
&lt;PRE&gt;&lt;FONT size="2"&gt;&lt;CODE&gt;ods msoffice2k path="C:\temp"(url=none) file="file1.html" newfile=output;
proc gchart data=sashelp.prdsale;
   pie product;
run;
quit;
proc print data=sashelp.prdsale;
run;
ods msoffice2k close;&lt;BR /&gt;
ods path(prepend) work.templat(update);                                                                                                 
filename temp url "http://support.sas.com/rnd/base/ods/odsmarkup/msoffice2k/msoffice2k_x.sas";                &lt;BR /&gt;%include temp;                                                                                                                          
ods tagsets.msoffice2k_x path="c:\temp" file="test.xls" style=statistical
    options(worksheet_source="c:\temp\file1.html,c:\temp\file2.html");

data _null_;
   file print;
   put _all_;
run;
ods tagsets.msoffice2k_x close; 
ods tagsets.msoffice2k_x path="c:\temp" file="test.xls" style=statistical
      options( worksheet_source="Graph_ouput#c:\temp\file1.html,
                                 Table_outpu#c:\temp\file2.html" );
data _null_;
   file print;
   put _all_;
run;
ods tagsets.msoffice2k_x close; &lt;/CODE&gt;&lt;/FONT&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 03 Jan 2018 02:57:19 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2018-01-03T02:57:19Z</dc:date>
    <item>
      <title>ods excell multiple sheets with tables horizontaly</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ods-excell-multiple-sheets-with-tables-horizontaly/m-p/424441#M20086</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to create a report containing multiple sheets and with tables side by side in one sheet. From what i read so far, best way is to use tagsets because normally ods excell will overwrite the sheet where i try to put tables horizontally. Tagsets on the other hand have problems with multiple sheets, so i need to make the sheets in html format and then link them as sources of sheets(like in the code below)?&lt;/P&gt;&lt;P&gt;Is this the best way to do this?&lt;/P&gt;&lt;P&gt;I managed to do it in batch mode but when i try to open the excell file i get the message that the&amp;nbsp;path to htmls is wrong.&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to&amp;nbsp;set path to htmls so the excell can be just copied between systems?&lt;/P&gt;&lt;PRE&gt;&lt;FONT size="2"&gt;&lt;CODE&gt;ods msoffice2k path="C:\temp"(url=none) file="file1.html" newfile=output;
proc gchart data=sashelp.prdsale;
   pie product;
run;
quit;
proc print data=sashelp.prdsale;
run;
ods msoffice2k close;&lt;BR /&gt;
ods path(prepend) work.templat(update);                                                                                                 
filename temp url "http://support.sas.com/rnd/base/ods/odsmarkup/msoffice2k/msoffice2k_x.sas";                &lt;BR /&gt;%include temp;                                                                                                                          
ods tagsets.msoffice2k_x path="c:\temp" file="test.xls" style=statistical
    options(worksheet_source="c:\temp\file1.html,c:\temp\file2.html");

data _null_;
   file print;
   put _all_;
run;
ods tagsets.msoffice2k_x close; 
ods tagsets.msoffice2k_x path="c:\temp" file="test.xls" style=statistical
      options( worksheet_source="Graph_ouput#c:\temp\file1.html,
                                 Table_outpu#c:\temp\file2.html" );
data _null_;
   file print;
   put _all_;
run;
ods tagsets.msoffice2k_x close; &lt;/CODE&gt;&lt;/FONT&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jan 2018 20:44:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ods-excell-multiple-sheets-with-tables-horizontaly/m-p/424441#M20086</guid>
      <dc:creator>xThylx</dc:creator>
      <dc:date>2018-01-02T20:44:49Z</dc:date>
    </item>
    <item>
      <title>Re: ods excell multiple sheets with tables horizontaly</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ods-excell-multiple-sheets-with-tables-horizontaly/m-p/424454#M20087</link>
      <description>&lt;P&gt;Maybe I don't understand what you're asking, but it looks like you're asking two different things...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ODS EXCEL is perfectly happy to do two sheets for you.&amp;nbsp; It's also happy to do two things on one sheet.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods excel file="c:\temp\file1.xlsx" options(sheet_interval="none");
proc gchart data=sashelp.prdsale;
   pie product;
run;
quit;
proc print data=sashelp.prdsale;
run;
ods excel options(sheet_interval="now");
proc print data=sashelp.class;
run;
ods excel close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You're not doing two things on one sheet, though, so I don't see exactly what you want there - but it's very possible.&amp;nbsp; It's not possible to perfectly position things, though, which is where it gets messy. I'm not sure you could get the chart and table on the first worksheet to be left to right instead of up and down, for example.&amp;nbsp; For that you'd probably need something more complicated, or to use ODS LAYOUT which I don't think works with ODS EXCEL, unless they've fixed that or I'm mistaken.&amp;nbsp; (See&amp;nbsp;&lt;A href="http://documentation.sas.com/?docsetId=odsug&amp;amp;docsetTarget=p06ji2uhvayhq5n1eik2z2rf2ga8.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank"&gt;the documentation for ODS LAYOUT GRIDDED for example&lt;/A&gt;).&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jan 2018 21:34:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ods-excell-multiple-sheets-with-tables-horizontaly/m-p/424454#M20087</guid>
      <dc:creator>snoopy369</dc:creator>
      <dc:date>2018-01-02T21:34:01Z</dc:date>
    </item>
    <item>
      <title>Re: ods excell multiple sheets with tables horizontaly</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ods-excell-multiple-sheets-with-tables-horizontaly/m-p/424457#M20088</link>
      <description>&lt;P&gt;I don't know if it will make a difference but should&lt;/P&gt;
&lt;PRE&gt;      options( worksheet_source="Graph_ouput#c:\temp\file1.html,
                                 Table_outpu#c:\temp\file2.html" );
&lt;/PRE&gt;
&lt;P&gt;be&lt;/P&gt;
&lt;PRE&gt;      options( worksheet_source="Graph_output#c:\temp\file1.html,
                                 Table_output#c:\temp\file2.html" );&lt;/PRE&gt;
&lt;P&gt;with ouput and outpu corrected to output?&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jan 2018 21:36:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ods-excell-multiple-sheets-with-tables-horizontaly/m-p/424457#M20088</guid>
      <dc:creator>HB</dc:creator>
      <dc:date>2018-01-02T21:36:51Z</dc:date>
    </item>
    <item>
      <title>Re: ods excell multiple sheets with tables horizontaly</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ods-excell-multiple-sheets-with-tables-horizontaly/m-p/424498#M20089</link>
      <description>&lt;P&gt;TAGSETS is fairly generic term and there are several tagsets in SAS, primarily EXCELXP.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You aren't creating an Excel file, you're creating HTML files that are linked but if that's what you want :).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ODS EXCEL can do a portion of what you want, but not side by side graphs.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can control where the output starts.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It's not stated but your code includes a graph but no side by side tables?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If your requirements are includes graphs, multiple sheets AND side by side graphs then your best bet is the approach you've taken.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you don't need graphs then I would recommend an entirely different approach since you're not showing side by side tables that I can see. You don't seem to be using any of the other tagset features besides the multi sheet, in that case using either an PROC EXPORT or the macro here maybe more useful.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.sascommunity.org/wiki/A_Poor/Rich_SAS_Users_Proc_Export" target="_blank"&gt;http://www.sascommunity.org/wiki/A_Poor/Rich_SAS_Users_Proc_Export&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that you only need to run this session once and then never again.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;FONT size="2"&gt;&lt;CODE&gt;filename temp url "http://support.sas.com/rnd/base/ods/odsmarkup/msoffice2k/msoffice2k_x.sas";                &lt;BR /&gt;%include temp; &lt;/CODE&gt;&lt;/FONT&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you don't need side by side tables, but do need graphs and tables and multi-sheet then I would say use ODS EXCEL.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/137438"&gt;@xThylx&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm trying to create a report containing multiple sheets and with tables side by side in one sheet. From what i read so far, best way is to use tagsets because normally ods excell will overwrite the sheet where i try to put tables horizontally. Tagsets on the other hand have problems with multiple sheets, so i need to make the sheets in html format and then link them as sources of sheets(like in the code below)?&lt;/P&gt;
&lt;P&gt;Is this the best way to do this?&lt;/P&gt;
&lt;P&gt;I managed to do it in batch mode but when i try to open the excell file i get the message that the&amp;nbsp;path to htmls is wrong.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How to&amp;nbsp;set path to htmls so the excell can be just copied between systems?&lt;/P&gt;
&lt;PRE&gt;&lt;FONT size="2"&gt;&lt;CODE&gt;ods msoffice2k path="C:\temp"(url=none) file="file1.html" newfile=output;
proc gchart data=sashelp.prdsale;
   pie product;
run;
quit;
proc print data=sashelp.prdsale;
run;
ods msoffice2k close;&lt;BR /&gt;
ods path(prepend) work.templat(update);                                                                                                 
filename temp url "http://support.sas.com/rnd/base/ods/odsmarkup/msoffice2k/msoffice2k_x.sas";                &lt;BR /&gt;%include temp;                                                                                                                          
ods tagsets.msoffice2k_x path="c:\temp" file="test.xls" style=statistical
    options(worksheet_source="c:\temp\file1.html,c:\temp\file2.html");

data _null_;
   file print;
   put _all_;
run;
ods tagsets.msoffice2k_x close; 
ods tagsets.msoffice2k_x path="c:\temp" file="test.xls" style=statistical
      options( worksheet_source="Graph_ouput#c:\temp\file1.html,
                                 Table_outpu#c:\temp\file2.html" );
data _null_;
   file print;
   put _all_;
run;
ods tagsets.msoffice2k_x close; &lt;/CODE&gt;&lt;/FONT&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2018 02:57:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ods-excell-multiple-sheets-with-tables-horizontaly/m-p/424498#M20089</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-01-03T02:57:19Z</dc:date>
    </item>
    <item>
      <title>Re: ods excell multiple sheets with tables horizontaly</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ods-excell-multiple-sheets-with-tables-horizontaly/m-p/756149#M25152</link>
      <description>how can we place two or more tables in one excel sheet&lt;BR /&gt;tables to be placed horizontally one after the other i the same sheet using ODS excelxp?</description>
      <pubDate>Fri, 23 Jul 2021 09:07:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ods-excell-multiple-sheets-with-tables-horizontaly/m-p/756149#M25152</guid>
      <dc:creator>ss171</dc:creator>
      <dc:date>2021-07-23T09:07:05Z</dc:date>
    </item>
    <item>
      <title>Re: ods excell multiple sheets with tables horizontaly</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ods-excell-multiple-sheets-with-tables-horizontaly/m-p/756222#M25155</link>
      <description>Only ODS HTML as far as I know.</description>
      <pubDate>Fri, 23 Jul 2021 14:43:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ods-excell-multiple-sheets-with-tables-horizontaly/m-p/756222#M25155</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-07-23T14:43:17Z</dc:date>
    </item>
  </channel>
</rss>

