<?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 Output to Excel - Naming the Excel Tab in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/ODS-Output-to-Excel-Naming-the-Excel-Tab/m-p/637243#M189435</link>
    <description>&lt;P&gt;There are dozens of options in ODS EXCEL, and you would be wise to familiarize yourself with them.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/?docsetId=odsug&amp;amp;docsetTarget=p09n5pw9ol0897n1qe04zeur27rv.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en#p0258wnlz15ubrn1vqfalp6l4hjz"&gt;https://documentation.sas.com/?docsetId=odsug&amp;amp;docsetTarget=p09n5pw9ol0897n1qe04zeur27rv.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en#p0258wnlz15ubrn1vqfalp6l4hjz&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In particular, to answer your question&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ods excel file="whatever.xlsx" options(sheet_name='Fred Flintstone');&lt;/P&gt;</description>
    <pubDate>Fri, 03 Apr 2020 12:45:47 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2020-04-03T12:45:47Z</dc:date>
    <item>
      <title>ODS Output to Excel - Naming the Excel Tab</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-Output-to-Excel-Naming-the-Excel-Tab/m-p/637237#M189434</link>
      <description>&lt;P&gt;Hi.&amp;nbsp; I'm wondering if there is a way to name the Tab that is created within Excel that holds my Proc Report output?&amp;nbsp; Right now it's getting populated with something by default.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any help would be much appreciated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* EXPORT THE FILE TO XLS USING ODS */
OPTION MISSING = '';
ODS EXCEL FILE="C:\USERS\STEVEBUECHLER\BOX SYNC\IBM\USPS\HRC PAY DATA ANALYSIS\&amp;amp;SITE._HCR_PD_SUMMARY.XLSX";
PROC REPORT DATA=&amp;amp;SITE._HCR_SUMMARY_F;
title "&amp;amp;site_nm HCR Pay Data Summary";

define area  / style(column)=[cellwidth= 2in] ;

COMPUTE AREA;
      IF FIND(AREA,"AREA SITE GRAND TOTAL") THEN
      CALL DEFINE(_ROW_, "STYLE", "STYLE=[FONTWEIGHT=BOLD
                                          FOREGROUND=BLUE]");
ENDCOMP;
COMPUTE PAY_DATA_MONTH_CHR;
      IF FIND(PAY_DATA_MONTH_CHR,"HCR CONTRACT TOTAL") THEN
      CALL DEFINE(_ROW_, "STYLE", "STYLE=[FONTWEIGHT=BOLD
                                          BACKGROUND=HONEYDEW]");
ENDCOMP;
COMPUTE ACTIVITY_DESCRIPTION;
      IF FIND(ACTIVITY_DESCRIPTION,"CONTRACT SUBTOTAL") THEN
      CALL DEFINE(_COL_, "STYLE", "STYLE=[FONTWEIGHT=BOLD
	                                      FOREGROUND=DARKGREEN
                                          BACKGROUND=HONEYDEW]");
ENDCOMP;
COMPUTE FREQ;
      IF FIND(ACTIVITY_DESCRIPTION,"CONTRACT SUBTOTAL") THEN
      CALL DEFINE(_COL_, "STYLE", "STYLE=[FONTWEIGHT=BOLD
	                                      FOREGROUND=DARKGREEN
                                          BACKGROUND=HONEYDEW]");
ENDCOMP;
COMPUTE PAY_AMOUNT;
      IF FIND(ACTIVITY_DESCRIPTION,"CONTRACT SUBTOTAL") THEN
      CALL DEFINE(_COL_, "STYLE", "STYLE=[FONTWEIGHT=BOLD
	                                      FOREGROUND=DARKGREEN
                                          BACKGROUND=HONEYDEW]");
ENDCOMP;
COMPUTE RATE_PER_UNIT;
      IF FIND(ACTIVITY_DESCRIPTION,"CONTRACT SUBTOTAL") THEN
      CALL DEFINE(_COL_, "STYLE", "STYLE=[FONTWEIGHT=BOLD
	                                      FOREGROUND=DARKGREEN
                                          BACKGROUND=HONEYDEW]");
ENDCOMP;
COMPUTE UNITS;
      IF FIND(ACTIVITY_DESCRIPTION,"CONTRACT SUBTOTAL") THEN
      CALL DEFINE(_COL_, "STYLE", "STYLE=[FONTWEIGHT=BOLD
	                                      FOREGROUND=DARKGREEN
                                          BACKGROUND=HONEYDEW]");
ENDCOMP;
COLUMNS _ALL_;
RUN;
ODS EXCEL CLOSE;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 03 Apr 2020 12:34:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-Output-to-Excel-Naming-the-Excel-Tab/m-p/637237#M189434</guid>
      <dc:creator>buechler66</dc:creator>
      <dc:date>2020-04-03T12:34:18Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Output to Excel - Naming the Excel Tab</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-Output-to-Excel-Naming-the-Excel-Tab/m-p/637243#M189435</link>
      <description>&lt;P&gt;There are dozens of options in ODS EXCEL, and you would be wise to familiarize yourself with them.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/?docsetId=odsug&amp;amp;docsetTarget=p09n5pw9ol0897n1qe04zeur27rv.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en#p0258wnlz15ubrn1vqfalp6l4hjz"&gt;https://documentation.sas.com/?docsetId=odsug&amp;amp;docsetTarget=p09n5pw9ol0897n1qe04zeur27rv.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en#p0258wnlz15ubrn1vqfalp6l4hjz&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In particular, to answer your question&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ods excel file="whatever.xlsx" options(sheet_name='Fred Flintstone');&lt;/P&gt;</description>
      <pubDate>Fri, 03 Apr 2020 12:45:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-Output-to-Excel-Naming-the-Excel-Tab/m-p/637243#M189435</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-04-03T12:45:47Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Output to Excel - Naming the Excel Tab</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-Output-to-Excel-Naming-the-Excel-Tab/m-p/637245#M189436</link>
      <description>Thanks for your help again!  I really appreciate it.  And thanks for the documentation link too.</description>
      <pubDate>Fri, 03 Apr 2020 12:51:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-Output-to-Excel-Naming-the-Excel-Tab/m-p/637245#M189436</guid>
      <dc:creator>buechler66</dc:creator>
      <dc:date>2020-04-03T12:51:04Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Output to Excel - Naming the Excel Tab</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-Output-to-Excel-Naming-the-Excel-Tab/m-p/637247#M189437</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;='Fred Flintstone'&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;YMMD&lt;/P&gt;</description>
      <pubDate>Fri, 03 Apr 2020 13:03:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-Output-to-Excel-Naming-the-Excel-Tab/m-p/637247#M189437</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-04-03T13:03:04Z</dc:date>
    </item>
  </channel>
</rss>

