<?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: Sheet names in ODS TAGSETS.EXCELXP in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Sheet-names-in-ODS-TAGSETS-EXCELXP/m-p/397478#M96067</link>
    <description>&lt;P&gt;&lt;STRONG&gt;Before EACH&lt;/STRONG&gt; call to proc report insert a line like&lt;/P&gt;
&lt;PRE&gt;ods tagsets.excelxp options(sheet_name='TOC');&lt;/PRE&gt;
&lt;P&gt;the text you want for the specific sheet name would replace TOC for the second or third pages.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 20 Sep 2017 15:09:59 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2017-09-20T15:09:59Z</dc:date>
    <item>
      <title>Sheet names in ODS TAGSETS.EXCELXP</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sheet-names-in-ODS-TAGSETS-EXCELXP/m-p/397350#M96031</link>
      <description>&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to set up sheet name when using proc report to generate excel?&lt;/P&gt;&lt;P&gt;For example, I want to make the sheet name as TOC, L16_2_1_1 and L16_2_1_2.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't want the "Table" in the sheet name.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="未命名.png" style="width: 596px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/15305i67BEDB8F06C3C3E9/image-size/large?v=v2&amp;amp;px=999" role="button" title="未命名.png" alt="未命名.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is my code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ODS TAGSETS.EXCELXP FILE="&amp;amp;outpath.\Study_Listing_&amp;amp;time..XLS" STYLE=Styles.mystyle;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;ods escapechar='^';&lt;/P&gt;&lt;P&gt;PROC REPORT DATA= result.L_title NOWD&lt;BR /&gt;COLWIDTH=8 SPACING=2 /* Default column width &amp;amp; spacing */&lt;BR /&gt;CENTER /* Set default alignment to center */&lt;BR /&gt;HEADSKIP /* A blank under column headers. */&lt;BR /&gt;SPLIT= '|'&lt;BR /&gt;LS=256&lt;BR /&gt;contents="TOC"; /* Let split/new line char as '|' instead of the default '/'. */&lt;/P&gt;&lt;P&gt;COLUMNS pp no title number item;&lt;BR /&gt;DEFINE pp / display noprint;&lt;BR /&gt;DEFINE no / display noprint;&lt;BR /&gt;DEFINE title / display LEFT style=[cellwidth=80mm] '' '' flow;&lt;BR /&gt;DEFINE number / DISPLAY LEFT style=[cellwidth=36mm] 'No.' '';&lt;BR /&gt;DEFINE item / DISPLAY LEFT style=[cellwidth=120mm] 'Item' '' flow;&lt;BR /&gt;TITLE7 'Table of Contents';&lt;BR /&gt;RUN;&lt;BR /&gt;TITLE7 ' ';&lt;BR /&gt;QUIT;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC REPORT DATA=result.L16_2_1 NOWD&lt;BR /&gt;COLWIDTH=8 SPACING=2&lt;BR /&gt;CENTER&lt;BR /&gt;HEADSKIP&lt;BR /&gt;SPLIT= '|'&lt;BR /&gt;LS=256&lt;BR /&gt;contents="L16_2_1_1";&lt;BR /&gt;COLUMNS pp ptno TRT VISDAT VISDAT2 VISDAT3 VISDAT4 VISDAT5 DSTERM DSDTC DSSDTC DSDECOD DEDECOD2 DSCO ;&lt;BR /&gt;DEFINE ptno /display center style=[cellwidth=13mm] 'Subject|No.';&lt;BR /&gt;DEFINE trt /display center style=[cellwidth=18mm] 'Treatment';&lt;BR /&gt;DEFINE VISDAT /display center style=[cellwidth=24mm] 'Screening|(YYYYMMDD)' ;&lt;BR /&gt;DEFINE VISDAT2 /display center style=[cellwidth=24mm] 'Baseline|(YYYYMMDD)' ;&lt;BR /&gt;DEFINE VISDAT3 /display center style=[cellwidth=24mm] 'Month 1|(YYYYMMDD)' ;&lt;BR /&gt;DEFINE VISDAT4 /display center style=[cellwidth=24mm] 'Month 5|(YYYYMMDD)' ;&lt;BR /&gt;DEFINE VISDAT5 /display center style=[cellwidth=24mm] 'End of Study|(YYYYMMDD)' ;&lt;BR /&gt;DEFINE DSTERM /display center style=[cellwidth=16mm] 'Did the Subject Complete the Study?' ;&lt;BR /&gt;DEFINE DSDTC /display center style=[cellwidth=30mm] 'If Yes, Date of Completion|(YYYYMMDD)' f=IS8601DA10. ;&lt;BR /&gt;DEFINE DSSDTC /display center style=[cellwidth=25mm] 'If No, Date of Discontinuation|(YYYYMMDD)' ;&lt;BR /&gt;DEFINE DSDECOD /display left style=[cellwidth=50mm] 'If No, Please Choose Only One Primary Reason' ;&lt;BR /&gt;DEFINE DEDECOD2 /display left style=[cellwidth=100mm] 'Please Specify the Details About the Reason for Discontinuation' ;&lt;BR /&gt;DEFINE DSCO /display left style=[cellwidth=100mm] 'Comment' ;&lt;BR /&gt;DEFINE pp / ORDER noprint;&lt;BR /&gt;TITLE7 j=center height=10pt "Listing 16.2.1.1: Discontinued Subjects Disposition";&lt;BR /&gt;FOOTNOTE4 j=left height=10pt "Note:" ;&lt;BR /&gt;FOOTNOTE5 j=left height=10pt "*Other, please specify" ;&lt;BR /&gt;FOOTNOTE6 j=left height=10pt "**How many cigarettes per day" ;&lt;BR /&gt;RUN;&lt;BR /&gt;TITLE7 " ";&lt;BR /&gt;FOOTNOTE4 " ";&lt;BR /&gt;FOOTNOTE5 " ";&lt;BR /&gt;FOOTNOTE6 " ";&lt;BR /&gt;QUIT;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;PROC REPORT DATA= result.L16_2_2_1 NOWD&lt;BR /&gt;COLWIDTH=8 SPACING=2&lt;BR /&gt;CENTER&lt;BR /&gt;HEADSKIP&lt;BR /&gt;SPLIT= '|'&lt;BR /&gt;LS=256&lt;BR /&gt;contents="L16_2_1_2";&lt;BR /&gt;COLUMNS pp ptno TRT IEYN ('If No, Please Specify the Reason' IENO EXNO IECO ) ;&lt;BR /&gt;DEFINE ptno /display center style=[cellwidth=25mm] 'Subject No.';&lt;BR /&gt;DEFINE trt /display center style=[cellwidth=18mm] 'Treatment';&lt;BR /&gt;DEFINE IEYN /center style=[cellwidth=90mm] 'Does the Subject Meet All of the Inclusion Criteria and None of the Exclusion Criteria?' ;&lt;BR /&gt;DEFINE IENO /left style=[cellwidth=40mm] 'Inclusion Criteria No.' ;&lt;BR /&gt;DEFINE EXNO /left style=[cellwidth=40mm] 'Exclusion Criteria No.' ;&lt;BR /&gt;DEFINE IECO /display left style=[cellwidth=40mm] 'Comment' ;&lt;BR /&gt;DEFINE pp / ORDER noprint;&lt;BR /&gt;break before pp / page contents='' ;&lt;BR /&gt;TITLE7 j=center height=10pt "Listing 16.2.2.1: Inclusion/ Exclusion Criteria at Screening";&lt;BR /&gt;RUN;&lt;BR /&gt;TITLE7 ' ';&lt;BR /&gt;QUIT;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ODS TAGSETS.EXCELXP CLOSE;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2017 08:01:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sheet-names-in-ODS-TAGSETS-EXCELXP/m-p/397350#M96031</guid>
      <dc:creator>Takamini</dc:creator>
      <dc:date>2017-09-20T08:01:32Z</dc:date>
    </item>
    <item>
      <title>Re: Sheet names in ODS TAGSETS.EXCELXP</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sheet-names-in-ODS-TAGSETS-EXCELXP/m-p/397478#M96067</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Before EACH&lt;/STRONG&gt; call to proc report insert a line like&lt;/P&gt;
&lt;PRE&gt;ods tagsets.excelxp options(sheet_name='TOC');&lt;/PRE&gt;
&lt;P&gt;the text you want for the specific sheet name would replace TOC for the second or third pages.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2017 15:09:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sheet-names-in-ODS-TAGSETS-EXCELXP/m-p/397478#M96067</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-09-20T15:09:59Z</dc:date>
    </item>
  </channel>
</rss>

