<?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: Combining Two different SAS Reports into excel in different tabs in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Combining-Two-different-SAS-Reports-into-excel-in-different-tabs/m-p/174408#M44839</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Basically make your two programs one. You can use %include if needed, as long as you remove ODS TAGSETS FILE commands from each one. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E.G.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ODS TAGSETS.EXCELXP File="&amp;nbsp; "&amp;nbsp; options(.....) style=journal;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*first program;&lt;/P&gt;&lt;P&gt;%include 'my_report1.sas';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*second program;&lt;/P&gt;&lt;P&gt;%include 'my_report2.sas';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ODS TAGSETS.EXCELXP close;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Jan 2015 13:55:08 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2015-01-08T13:55:08Z</dc:date>
    <item>
      <title>Combining Two different SAS Reports into excel in different tabs</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Combining-Two-different-SAS-Reports-into-excel-in-different-tabs/m-p/174406#M44837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 14pt;"&gt;Dear All,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 14pt;"&gt;I have a question related to proc report. I have a business case as below.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 14pt;"&gt;1) I have a report called sales which outputs to excel using tagsets&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 14pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 14pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; it contains three tabs &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 14pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sales by country-tab1,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 14pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sales by region-tab2,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 14pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; overall sales-tab3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 14pt;"&gt;The above output is generated based out of one SAS program.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 14pt;"&gt;2) I have a report called Growth/Decline Sales which outputs to excel using tagsets&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 14pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -it contains two tabs &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 14pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sales Growth/Decline country-tab1,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 14pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sales Growth/Decline by region-tab2,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 14pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 14pt;"&gt;Growth/Decline overall sales-tab3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 14pt;"&gt;The above output is generated based out of one SAS program.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 14pt;"&gt;Question:I want to combine these two different SAS reports and the resultant report should contain 6 excel tabs in a single excel(3 from program1 and 3 from program2).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 14pt;"&gt;Kindly advice.If someone could explain with example that would be really great.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 14pt;"&gt;Thanks all for your wonderful help in Advance.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 14pt;"&gt;Wish you all a very very happy new year.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 14pt;"&gt;Sreekanth:)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2015 12:11:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Combining-Two-different-SAS-Reports-into-excel-in-different-tabs/m-p/174406#M44837</guid>
      <dc:creator>SreekanthRao</dc:creator>
      <dc:date>2015-01-08T12:11:29Z</dc:date>
    </item>
    <item>
      <title>Re: Combining Two different SAS Reports into excel in different tabs</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Combining-Two-different-SAS-Reports-into-excel-in-different-tabs/m-p/174407#M44838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Output from ODS continues through a program until it is closed.&amp;nbsp; Hence if you put:&lt;/P&gt;&lt;P&gt;ods tagsets.excelxp file=...;&lt;/P&gt;&lt;P&gt;Near the top of your program, and then do your reports outputting to a new tab each report.&amp;nbsp; Then right at the end ods tagsets.excelxp close; it will all go out to the same file.&amp;nbsp; So you will end up with one file with 6 tabs output.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2015 13:46:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Combining-Two-different-SAS-Reports-into-excel-in-different-tabs/m-p/174407#M44838</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2015-01-08T13:46:51Z</dc:date>
    </item>
    <item>
      <title>Re: Combining Two different SAS Reports into excel in different tabs</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Combining-Two-different-SAS-Reports-into-excel-in-different-tabs/m-p/174408#M44839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Basically make your two programs one. You can use %include if needed, as long as you remove ODS TAGSETS FILE commands from each one. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E.G.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ODS TAGSETS.EXCELXP File="&amp;nbsp; "&amp;nbsp; options(.....) style=journal;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*first program;&lt;/P&gt;&lt;P&gt;%include 'my_report1.sas';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*second program;&lt;/P&gt;&lt;P&gt;%include 'my_report2.sas';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ODS TAGSETS.EXCELXP close;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2015 13:55:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Combining-Two-different-SAS-Reports-into-excel-in-different-tabs/m-p/174408#M44839</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-01-08T13:55:08Z</dc:date>
    </item>
  </channel>
</rss>

