<?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: Getting rid of Bygroup on tabs. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Getting-rid-of-Bygroup-on-tabs/m-p/797124#M255856</link>
    <description>&lt;P&gt;Hey Cythina,&lt;/P&gt;&lt;P&gt;The&amp;nbsp;&lt;SPAN&gt;#byval1 worked for the sheet_name. Thank you. However I don't want to get rid of the byline completely. I just want to get rid of the prefix "Name=". Is there a way to do this?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;--Michael&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 18 Feb 2022 01:48:27 GMT</pubDate>
    <dc:creator>mmaleta851</dc:creator>
    <dc:date>2022-02-18T01:48:27Z</dc:date>
    <item>
      <title>Getting rid of Bygroup on tabs.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Getting-rid-of-Bygroup-on-tabs/m-p/797114#M255854</link>
      <description>&lt;P&gt;So when I run this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;data table;
input Name:$24. Date:YYQ8. Trips Sales;
format Name $24. Date YYQ8.;
datalines;
John 2021Q1 10 100
John 2021Q3 2 200
John 2021Q4 4 400
David 2021Q1 16 300
David 2021Q2 8 600
David 2021Q4 19 100
;
run;

proc sort data=work.table out=sorted_table;
by Name;
run;

ods excel file="\Table.xlsx"
options(sheet_interval="bygroup");
ods noproctitle;
proc print data=work.sorted_table;
by Name;
run;
ods excel close;

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;On each excel tab there is a "ByGroup # - " in addition the group instance. How do I get rid of this? Additionally, at the top of the Excel sheets, I get a "Name=" in addition to the instance. How do I get rid of this prefix?&lt;/P&gt;</description>
      <pubDate>Fri, 18 Feb 2022 00:37:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Getting-rid-of-Bygroup-on-tabs/m-p/797114#M255854</guid>
      <dc:creator>mmaleta851</dc:creator>
      <dc:date>2022-02-18T00:37:59Z</dc:date>
    </item>
    <item>
      <title>Re: Getting rid of Bygroup on tabs.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Getting-rid-of-Bygroup-on-tabs/m-p/797123#M255855</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; You need to use one more system option and then another suboption, as shown below:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cynthia_sas_0-1645148316625.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/68628i2C28F0182044A84A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cynthia_sas_0-1645148316625.png" alt="Cynthia_sas_0-1645148316625.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Using the NOBYLINE option is like flipping a switch so that SAS uses the syntax for by value substitution using the #byval1 and #byline syntax. With ODS EXCEL if you want the tabs to be simply labeled with the By value, then use #byval1 as the value for the sheet_name suboption. Without any usage like this, you get the entire byline on the tab.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Fri, 18 Feb 2022 01:40:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Getting-rid-of-Bygroup-on-tabs/m-p/797123#M255855</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2022-02-18T01:40:55Z</dc:date>
    </item>
    <item>
      <title>Re: Getting rid of Bygroup on tabs.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Getting-rid-of-Bygroup-on-tabs/m-p/797124#M255856</link>
      <description>&lt;P&gt;Hey Cythina,&lt;/P&gt;&lt;P&gt;The&amp;nbsp;&lt;SPAN&gt;#byval1 worked for the sheet_name. Thank you. However I don't want to get rid of the byline completely. I just want to get rid of the prefix "Name=". Is there a way to do this?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;--Michael&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Feb 2022 01:48:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Getting-rid-of-Bygroup-on-tabs/m-p/797124#M255856</guid>
      <dc:creator>mmaleta851</dc:creator>
      <dc:date>2022-02-18T01:48:27Z</dc:date>
    </item>
    <item>
      <title>Re: Getting rid of Bygroup on tabs.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Getting-rid-of-Bygroup-on-tabs/m-p/797145#M255871</link>
      <description>&lt;P&gt;Maybe there is an easier way: i use nobyline together with a title statement (same value as in sheet_name) and add the option embedded_titles='yes' in the ods options.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Feb 2022 06:29:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Getting-rid-of-Bygroup-on-tabs/m-p/797145#M255871</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2022-02-18T06:29:40Z</dc:date>
    </item>
    <item>
      <title>Re: Getting rid of Bygroup on tabs.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Getting-rid-of-Bygroup-on-tabs/m-p/797276#M255926</link>
      <description>&lt;P&gt;Hi: &lt;BR /&gt;Look at my code example and results carefully. My tabs just say David and John, the values of the BY variable. My tabs do not say NAME=. So in the TITLE statement, you would essentially need to do the same thing. By default the BYLINE is what it is--it will ALWAYS say NAME=. One of the reasons for using NOBYLINE is to control the look/feel of the separator text you get. Using #byline, #byvar and #byval allow you to do that in the TITLE -- that's how it was designed first, the usage in Excel destinations was built upon that original capability. Make sure your TITLE statement only has #byval1 in it and use the NOBYLINE option.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cynthia_sas_0-1645213633738.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/68669iCE378E255ACA7A6A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cynthia_sas_0-1645213633738.png" alt="Cynthia_sas_0-1645213633738.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Fri, 18 Feb 2022 19:47:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Getting-rid-of-Bygroup-on-tabs/m-p/797276#M255926</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2022-02-18T19:47:34Z</dc:date>
    </item>
  </channel>
</rss>

