<?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 assign a Tab name in the Export file after Proc Tabulate? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-assign-a-Tab-name-in-the-Export-file-after-Proc-Tabulate/m-p/850844#M336241</link>
    <description>&lt;P&gt;That's not the code I provided. The code I provided should work without modification, if your PROC TABULATE blocks are correct.&lt;/P&gt;</description>
    <pubDate>Thu, 22 Dec 2022 19:15:59 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2022-12-22T19:15:59Z</dc:date>
    <item>
      <title>How to assign a Tab name in the Export file after Proc Tabulate?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-assign-a-Tab-name-in-the-Export-file-after-Proc-Tabulate/m-p/850840#M336238</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;I have a sample code list below.&amp;nbsp; Is there a way to name the different tabs after getting the Tabulate tables?&amp;nbsp; Thanks.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods excel file="Pathway\Dataout_Sites_&amp;amp;tdate..xlsx";

proc tabulate data=Datain1;
  var Total_Cost;
  class class;
  table class*N;
  format class class.;
  where class in (5,6,7,8);
run;

proc tabulate data=Datain2;
  var Lab Radiology Diagnostic_Other;
  class Patient_class;
  table Patient_class * N;
  format Patient_class Patient_class.;
run;

proc tabulate data=Datain3;
  var n;
  class patient_class;
  table patient_class*n*(mean median);
  format patient_clas patient_class.;
run;

ods excel close; 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 22 Dec 2022 19:07:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-assign-a-Tab-name-in-the-Export-file-after-Proc-Tabulate/m-p/850840#M336238</guid>
      <dc:creator>ybz12003</dc:creator>
      <dc:date>2022-12-22T19:07:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to assign a Tab name in the Export file after Proc Tabulate?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-assign-a-Tab-name-in-the-Export-file-after-Proc-Tabulate/m-p/850841#M336239</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods excel file="Pathway\Dataout_Sites_&amp;amp;tdate..xlsx" options(sheet_name="DataIn1");

proc tabulate data=Datain1;
  var Total_Cost;
  class class;
  table class*N;
  format class class.;
  where class in (5,6,7,8);
run;

ods excel options(sheet_name="DataIn2");
proc tabulate data=Datain2;
  var Lab Radiology Diagnostic_Other;
  class Patient_class;
  table Patient_class * N;
  format Patient_class Patient_class.;
run;

ods excel options(sheet_name="DataIn3");
proc tabulate data=Datain3;
  var n;
  class patient_class;
  table patient_class*n*(mean median);
  format patient_clas patient_class.;
run;

ods excel close; &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;Feel free to use any valid sheet names you want.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2022 19:09:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-assign-a-Tab-name-in-the-Export-file-after-Proc-Tabulate/m-p/850841#M336239</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-12-22T19:09:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to assign a Tab name in the Export file after Proc Tabulate?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-assign-a-Tab-name-in-the-Export-file-after-Proc-Tabulate/m-p/850843#M336240</link>
      <description>&lt;P&gt;So, like adding the sheet name in order as below?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods excel file="Pathway\Dataout_Sites_&amp;amp;tdate..xlsx" options(sheet_name="DataIn1" sheet_name="DataIn2" sheet_name="DataIn3");&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 22 Dec 2022 19:14:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-assign-a-Tab-name-in-the-Export-file-after-Proc-Tabulate/m-p/850843#M336240</guid>
      <dc:creator>ybz12003</dc:creator>
      <dc:date>2022-12-22T19:14:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to assign a Tab name in the Export file after Proc Tabulate?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-assign-a-Tab-name-in-the-Export-file-after-Proc-Tabulate/m-p/850844#M336241</link>
      <description>&lt;P&gt;That's not the code I provided. The code I provided should work without modification, if your PROC TABULATE blocks are correct.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2022 19:15:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-assign-a-Tab-name-in-the-Export-file-after-Proc-Tabulate/m-p/850844#M336241</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-12-22T19:15:59Z</dc:date>
    </item>
  </channel>
</rss>

