<?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: PROC Print By Variables on separate tabs in Excel (SAS EG) in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/PROC-Print-By-Variables-on-separate-tabs-in-Excel-SAS-EG/m-p/690547#M79662</link>
    <description>&lt;P&gt;Whew, that worked.&amp;nbsp; I set the SHEET_INTERVAL="NONE" in the ODS Excel statement, and that did it.&amp;nbsp; Must have had a different default than I realized.&amp;nbsp; Thanks!&lt;/P&gt;</description>
    <pubDate>Fri, 09 Oct 2020 18:18:21 GMT</pubDate>
    <dc:creator>TashaChapWUSS</dc:creator>
    <dc:date>2020-10-09T18:18:21Z</dc:date>
    <item>
      <title>PROC Print By Variables on separate tabs in Excel (SAS EG)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-Print-By-Variables-on-separate-tabs-in-Excel-SAS-EG/m-p/690534#M79659</link>
      <description>&lt;P&gt;Hey guys!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;So, I was using PROC PRINT in SAS EG (output using the default Excel report output options), and I noticed that it was printing each BY Variable on a separate tab, which is *not* what I want it to do (waaaaaaaay too many tabs).&amp;nbsp; I thought it required a PAGEBY statement for this kind of behavior?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyway, is there any way that I can have my report sectioned out by my BY Variable, but have the entire report appear on one tab?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FYI, I also tried this with an explicit ODS Excel statement to see if that made a difference, just in case there was a weird option hiding in the SAS EG default that I wasn't aware of and it came out the same.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's the PROC PRINT code.&amp;nbsp; As you can see, it's pretty simple.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc print data=dataerrorname noobs;&lt;BR /&gt;by tk_ois_establish;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Oct 2020 17:59:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-Print-By-Variables-on-separate-tabs-in-Excel-SAS-EG/m-p/690534#M79659</guid>
      <dc:creator>TashaChapWUSS</dc:creator>
      <dc:date>2020-10-09T17:59:58Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Print By Variables on separate tabs in Excel (SAS EG)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-Print-By-Variables-on-separate-tabs-in-Excel-SAS-EG/m-p/690541#M79660</link>
      <description>Just a couple minor things that I forgot to mention.&lt;BR /&gt;&lt;BR /&gt;The data is sorted by tk_OIS_establish and one other variable to the right.&lt;BR /&gt;&lt;BR /&gt;I had read that NOBYLINE causes this kind of behavior (separate page per BY group), and although I had not specified that option, I tried an OPTIONS BYLINE statement just to be sure, but that made no difference either.</description>
      <pubDate>Fri, 09 Oct 2020 18:10:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-Print-By-Variables-on-separate-tabs-in-Excel-SAS-EG/m-p/690541#M79660</guid>
      <dc:creator>TashaChapWUSS</dc:creator>
      <dc:date>2020-10-09T18:10:36Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Print By Variables on separate tabs in Excel (SAS EG)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-Print-By-Variables-on-separate-tabs-in-Excel-SAS-EG/m-p/690543#M79661</link>
      <description>Look at the SHEET_INTERVAL option that allows you to specify when a new sheet is started. Assuming you're using ODS EXCEL. &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 09 Oct 2020 18:11:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-Print-By-Variables-on-separate-tabs-in-Excel-SAS-EG/m-p/690543#M79661</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-10-09T18:11:57Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Print By Variables on separate tabs in Excel (SAS EG)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-Print-By-Variables-on-separate-tabs-in-Excel-SAS-EG/m-p/690547#M79662</link>
      <description>&lt;P&gt;Whew, that worked.&amp;nbsp; I set the SHEET_INTERVAL="NONE" in the ODS Excel statement, and that did it.&amp;nbsp; Must have had a different default than I realized.&amp;nbsp; Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 09 Oct 2020 18:18:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-Print-By-Variables-on-separate-tabs-in-Excel-SAS-EG/m-p/690547#M79662</guid>
      <dc:creator>TashaChapWUSS</dc:creator>
      <dc:date>2020-10-09T18:18:21Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Print By Variables on separate tabs in Excel (SAS EG)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-Print-By-Variables-on-separate-tabs-in-Excel-SAS-EG/m-p/690580#M79663</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/133839"&gt;@TashaChapWUSS&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Whew, that worked.&amp;nbsp; I set the SHEET_INTERVAL="NONE" in the ODS Excel statement, and that did it.&amp;nbsp; Must have had a different default than I realized.&amp;nbsp; Thanks!&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The default for Sheet_interval is "table". Since each of your by values creates a different table, at least as far as ODS output is concerned, each went to a separate sheet.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You would see different behavior if you ran Proc Univariate or some other procedure with multiple tables.&lt;/P&gt;
&lt;P&gt;Then the BYGROUP option keeps all the tables of a single by value on a sheet.&lt;/P&gt;
&lt;P&gt;Another option value to consider would be PROC to keep each procedure output on a single tab.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Oct 2020 20:31:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-Print-By-Variables-on-separate-tabs-in-Excel-SAS-EG/m-p/690580#M79663</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-10-09T20:31:40Z</dc:date>
    </item>
  </channel>
</rss>

