<?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: ExcelXP - Create an empty tab when dataset is empty in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ExcelXP-Create-an-empty-tab-when-dataset-is-empty/m-p/11935#M3102</link>
    <description>That worked perfectly!  Thanks much!</description>
    <pubDate>Tue, 05 Oct 2010 16:54:57 GMT</pubDate>
    <dc:creator>FrankE</dc:creator>
    <dc:date>2010-10-05T16:54:57Z</dc:date>
    <item>
      <title>ExcelXP - Create an empty tab when dataset is empty</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ExcelXP-Create-an-empty-tab-when-dataset-is-empty/m-p/11933#M3100</link>
      <description>Hi all,&lt;BR /&gt;
&lt;BR /&gt;
I'm using the excelXP tagset to create an Excel workbook with 2 tabs.  Sometimes one of the datasets is empty and the tab is not produced at all.  In the case of an empty dataset, I'd still like to produce the tab with just a header row so the user knows the report was run but found no records.  Suggestions?</description>
      <pubDate>Tue, 05 Oct 2010 15:57:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ExcelXP-Create-an-empty-tab-when-dataset-is-empty/m-p/11933#M3100</guid>
      <dc:creator>FrankE</dc:creator>
      <dc:date>2010-10-05T15:57:01Z</dc:date>
    </item>
    <item>
      <title>Re: ExcelXP - Create an empty tab when dataset is empty</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ExcelXP-Create-an-empty-tab-when-dataset-is-empty/m-p/11934#M3101</link>
      <description>modify that empty dataset to have just one "missing" row, with something like this&lt;BR /&gt;
- assuming the data set is named in &amp;amp;dataset and it is the kind of data set that will have a value for NOBS[pre]&lt;BR /&gt;
data _null_ ;&lt;BR /&gt;
    if not nobs then&lt;BR /&gt;
      call execute( 'data &amp;amp;dataset;  output ;  set &amp;amp;dataset ; run ; ' ) ;&lt;BR /&gt;
   stop;&lt;BR /&gt;
   set &amp;amp;dataset  nobs=nobs ;&lt;BR /&gt;
run ;[/pre]seems to work for me&lt;BR /&gt;
 &lt;BR /&gt;
peterC</description>
      <pubDate>Tue, 05 Oct 2010 16:09:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ExcelXP-Create-an-empty-tab-when-dataset-is-empty/m-p/11934#M3101</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2010-10-05T16:09:07Z</dc:date>
    </item>
    <item>
      <title>Re: ExcelXP - Create an empty tab when dataset is empty</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ExcelXP-Create-an-empty-tab-when-dataset-is-empty/m-p/11935#M3102</link>
      <description>That worked perfectly!  Thanks much!</description>
      <pubDate>Tue, 05 Oct 2010 16:54:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ExcelXP-Create-an-empty-tab-when-dataset-is-empty/m-p/11935#M3102</guid>
      <dc:creator>FrankE</dc:creator>
      <dc:date>2010-10-05T16:54:57Z</dc:date>
    </item>
    <item>
      <title>Re: ExcelXP - Create an empty tab when dataset is empty</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ExcelXP-Create-an-empty-tab-when-dataset-is-empty/m-p/11936#M3103</link>
      <description>This method that I thought I learned from you seems more concise.  Plus it does not rely on NOBS.&lt;BR /&gt;
&lt;BR /&gt;
data &amp;amp;dataset;&lt;BR /&gt;
   if _n_ eq 1 and eof then output;&lt;BR /&gt;
   stop;&lt;BR /&gt;
   modify &amp;amp;dataset end=eof;&lt;BR /&gt;
   run;</description>
      <pubDate>Tue, 05 Oct 2010 20:44:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ExcelXP-Create-an-empty-tab-when-dataset-is-empty/m-p/11936#M3103</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2010-10-05T20:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: ExcelXP - Create an empty tab when dataset is empty</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ExcelXP-Create-an-empty-tab-when-dataset-is-empty/m-p/11937#M3104</link>
      <description>glad someone remembers &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;</description>
      <pubDate>Thu, 07 Oct 2010 12:43:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ExcelXP-Create-an-empty-tab-when-dataset-is-empty/m-p/11937#M3104</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2010-10-07T12:43:03Z</dc:date>
    </item>
  </channel>
</rss>

