<?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: How to output two tabs with different names in Excel format? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-output-two-tabs-with-different-names-in-Excel-format/m-p/913658#M360090</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="sas"&gt;title "new NESS tests with positive results only";
proc freq data=test; 
     table updated_timestamp;
     table epi_message*erv_rslt / output = test2 list missing;
run;
title;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC EXPORT DATA= test2  /*Sheet 1*/
        outfile= "Test_&amp;amp;tdate..xlsx "
        dbms=xlsx replace;
        sheet="NESS_Pos";
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC EXPORT DATA= test2  /*Sheet 2*/
        outfile= "Test_&amp;amp;tdate..xlsx "
        dbms=xlsx replace;
        sheet="NESS_Pos2";
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 30 Jan 2024 19:38:06 GMT</pubDate>
    <dc:creator>pink_poodle</dc:creator>
    <dc:date>2024-01-30T19:38:06Z</dc:date>
    <item>
      <title>How to output two tabs with different names in Excel format?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-output-two-tabs-with-different-names-in-Excel-format/m-p/913650#M360089</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a way to output two tabs with two different names and two different table titles in Excel format?&amp;nbsp; I could my output by assigning one tab with "&lt;CODE class=" language-sas"&gt;NESS_Pos&lt;/CODE&gt;" and the other one was automatically changed to "&lt;CODE class=" language-sas"&gt;NESS_Pos2"  How can I assign to a specific name in the second table and tab? Thanks.&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods excel file="Test_&amp;amp;tdate..xlsx";

ods excel options(sheet_name="NESS_Pos");
title "new NESS tests with positive results only";
proc freq data=test; 
table updated_timestamp;
table epi_message*erv_rslt / list missing;
run;
title;

ods excel close;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 30 Jan 2024 18:51:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-output-two-tabs-with-different-names-in-Excel-format/m-p/913650#M360089</guid>
      <dc:creator>ybz12003</dc:creator>
      <dc:date>2024-01-30T18:51:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to output two tabs with different names in Excel format?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-output-two-tabs-with-different-names-in-Excel-format/m-p/913658#M360090</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="sas"&gt;title "new NESS tests with positive results only";
proc freq data=test; 
     table updated_timestamp;
     table epi_message*erv_rslt / output = test2 list missing;
run;
title;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC EXPORT DATA= test2  /*Sheet 1*/
        outfile= "Test_&amp;amp;tdate..xlsx "
        dbms=xlsx replace;
        sheet="NESS_Pos";
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC EXPORT DATA= test2  /*Sheet 2*/
        outfile= "Test_&amp;amp;tdate..xlsx "
        dbms=xlsx replace;
        sheet="NESS_Pos2";
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jan 2024 19:38:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-output-two-tabs-with-different-names-in-Excel-format/m-p/913658#M360090</guid>
      <dc:creator>pink_poodle</dc:creator>
      <dc:date>2024-01-30T19:38:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to output two tabs with different names in Excel format?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-output-two-tabs-with-different-names-in-Excel-format/m-p/913666#M360092</link>
      <description>&lt;P&gt;Use two separate PROC steps.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods excel file="%sysfunc(pathname(work))/sheetnames.xlsx";
ods excel options (sheet_name='SEX');
proc freq data=sashelp.class;
  tables sex;
run;
ods excel options (sheet_name='AGE');
proc freq data=sashelp.class;
  tables age;
run;
ods excel close;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 30 Jan 2024 19:57:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-output-two-tabs-with-different-names-in-Excel-format/m-p/913666#M360092</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2024-01-30T19:57:43Z</dc:date>
    </item>
  </channel>
</rss>

