<?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 excel and blank tabs in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-excel-and-blank-tabs/m-p/780877#M25464</link>
    <description>&lt;P&gt;Since your subject says this involves ODS Excel you should include the ODS Excel statement(s) and possibly other code that may be between the ODS statement and the Proc Report.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would suggest if the purpose of the step is only to create a data set that you should do that outside of the Ods destination/ ods destination close; statements.&lt;/P&gt;
&lt;P&gt;I suspect that Proc Report, as it is typically used to create tabular output when called, is reserving space in the ODS queue. Remove it from the inside the ods statements and I think it will go away.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Personally the only thing I put inside ODS destination code is stuff that actually generates all desired output. All data manipulation is done first. Just one reason is if I have to make an option change in Proc Report/Tabulate/SGPLOT etc. then I don't rerun code that might be lengthy to create the data sets used for the display just to get the new document.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 17 Nov 2021 21:22:16 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2021-11-17T21:22:16Z</dc:date>
    <item>
      <title>ODS excel and blank tabs</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-excel-and-blank-tabs/m-p/780872#M25463</link>
      <description>&lt;P&gt;When using PROC REPORT to perform a transposition, the procedure produces a blank tab in the workbook, which is not desired as all define statements are set to NOPRINT as shown below. Since I prefer to to use PROC REPORT for this and not PROC TRANSPOSE, is there a way to suppress this behavior? As it is each time a similar PROC REPORT step is encountered in the code, an additional tab (blank) is produced prior to the actual written final report.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC REPORT DATA = AEDECODB OUT = AEDECODP NOWD ;&lt;BR /&gt;COLUMN SYSTEMORGANCLASS AEDECOD EYEFL,COHORT,( PCT EVENTS) DUMMY;&lt;BR /&gt;DEFINE AEDECOD / ' ' GROUP NOPRINT;&lt;BR /&gt;DEFINE SYSTEMORGANCLASS / ' ' GROUP NOPRINT ;&lt;BR /&gt;DEFINE COHORT / ' ' ACROSS ORDER = FORMATTED noprint;&lt;BR /&gt;DEFINE EYEFL / ' ' ACROSS ORDER = FORMATTED noprint ;&lt;BR /&gt;DEFINE PCT / ' ' NOPRINT;&lt;BR /&gt;DEFINE EVENTS /' ' NOPRINT;&lt;BR /&gt;DEFINE DUMMY/ ' ' NOPRINT;&lt;BR /&gt;RUN;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Nov 2021 20:45:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-excel-and-blank-tabs/m-p/780872#M25463</guid>
      <dc:creator>Doug____</dc:creator>
      <dc:date>2021-11-17T20:45:22Z</dc:date>
    </item>
    <item>
      <title>Re: ODS excel and blank tabs</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-excel-and-blank-tabs/m-p/780877#M25464</link>
      <description>&lt;P&gt;Since your subject says this involves ODS Excel you should include the ODS Excel statement(s) and possibly other code that may be between the ODS statement and the Proc Report.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would suggest if the purpose of the step is only to create a data set that you should do that outside of the Ods destination/ ods destination close; statements.&lt;/P&gt;
&lt;P&gt;I suspect that Proc Report, as it is typically used to create tabular output when called, is reserving space in the ODS queue. Remove it from the inside the ods statements and I think it will go away.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Personally the only thing I put inside ODS destination code is stuff that actually generates all desired output. All data manipulation is done first. Just one reason is if I have to make an option change in Proc Report/Tabulate/SGPLOT etc. then I don't rerun code that might be lengthy to create the data sets used for the display just to get the new document.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Nov 2021 21:22:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-excel-and-blank-tabs/m-p/780877#M25464</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-11-17T21:22:16Z</dc:date>
    </item>
    <item>
      <title>Re: ODS excel and blank tabs</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-excel-and-blank-tabs/m-p/781342#M25474</link>
      <description>&lt;P&gt;Hi:&lt;BR /&gt;I've never seen a blank tab get generated using ODS EXCEL unless I explicitly request it using sheet_name and sheet_label sub-options, as shown below:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cynthia_sas_0-1637344261186.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/65923iB096A8E4EFE7DC42/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cynthia_sas_0-1637344261186.png" alt="Cynthia_sas_0-1637344261186.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;You did not show all your code and your ODS EXCEL options and sub-options. Also, without data, (either fake data or real data) nobody can test your code because without knowing the original structure, it's hard to understand how PROC REPORT is doing the transpose for you.&lt;BR /&gt;&lt;BR /&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Fri, 19 Nov 2021 17:53:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-excel-and-blank-tabs/m-p/781342#M25474</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2021-11-19T17:53:53Z</dc:date>
    </item>
    <item>
      <title>Re: ODS excel and blank tabs</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-excel-and-blank-tabs/m-p/781677#M25475</link>
      <description>&lt;P&gt;Hi &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13549"&gt;@Cynthia_sas&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I guess he is looking at something like this bewlo, expecting that no output is generated if proc report has no variable to display.&lt;/P&gt;
&lt;P&gt;I'm not aware of any option which would do that tho.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
ods excel file="&amp;amp;xxtraining./reporting/test.xlsx";

proc report data = sashelp.class;
    column sex height, age;
    define sex    / ' ' group    ;
    define height / ' ' analysis ;
    define age    / ' ' across   ;
run;

proc report data = sashelp.class;
    column sex height, age;
    define sex    / ' ' group    noprint;
    define height / ' ' analysis noprint;
    define age    / ' ' across   noprint;
run;

ods excel close;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 22 Nov 2021 07:27:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-excel-and-blank-tabs/m-p/781677#M25475</guid>
      <dc:creator>xxformat_com</dc:creator>
      <dc:date>2021-11-22T07:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: ODS excel and blank tabs</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-excel-and-blank-tabs/m-p/781735#M25476</link>
      <description>&lt;P&gt;Hi:&lt;BR /&gt;But remember that the second sheet gets created when PROC REPORT -starts- -- before it knows that everything is NOPRINT (which doesn't make any sense to me why there would even be a PROC REPORT with all the columns -- ALL the columns set to NOPRINT). So the sheet name, by default is as shown below:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cynthia_sas_0-1637594477520.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/66018iDC39F5446730991C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cynthia_sas_0-1637594477520.png" alt="Cynthia_sas_0-1637594477520.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Since I'm not sure of the purpose of the second PROC REPORT or what the goal is, I can't comment further. When the original post came in, I interpreted the "blank tab" to be the sheet indicator tab at the bottom, not an empty sheet.Without further clarification, data and code from the original poster, we are all just guessing.&lt;BR /&gt;&lt;BR /&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Mon, 22 Nov 2021 15:22:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-excel-and-blank-tabs/m-p/781735#M25476</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2021-11-22T15:22:30Z</dc:date>
    </item>
  </channel>
</rss>

