<?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: Format ODS Output Header created by the BY Statement in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Format-ODS-Output-Header-created-by-the-BY-Statement/m-p/814997#M25811</link>
    <description>&lt;P&gt;SAS supports the&amp;nbsp;#BYVAR and #BYVAL keywords, which you can specify in a TITLE statement. See &lt;A href="https://blogs.sas.com/content/iml/2021/02/22/byvar-byval-keywords-sas-titles.html" target="_self"&gt;"How to use the #BYVAR and #BYVAL keywords ...in SAS"&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In this case, I think you can get what you want by using&lt;/P&gt;
&lt;P&gt;OPTION BYLINE;&lt;/P&gt;
&lt;P&gt;TITLE3;&lt;/P&gt;
&lt;P&gt;If not, you can use the #BYVAR keyword to insert the name of the BY-group variable ("Specialist") and #BYVAL to insert the value of the current level (eg, "Ada Casusus").&lt;/P&gt;</description>
    <pubDate>Wed, 25 May 2022 11:09:17 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2022-05-25T11:09:17Z</dc:date>
    <item>
      <title>Format ODS Output Header created by the BY Statement</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Format-ODS-Output-Header-created-by-the-BY-Statement/m-p/814984#M25810</link>
      <description>&lt;P&gt;I am trying to format the header encased by Red below. Can you please guide?&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="Apprentice_0-1653451598944.png" style="width: 730px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/71751i97E3CD000DEE7A59/image-dimensions/730x267?v=v2" width="730" height="267" role="button" title="Apprentice_0-1653451598944.png" alt="Apprentice_0-1653451598944.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Code:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;proc sort data=temp_data ; &lt;BR /&gt;By Specialist; &lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;%LET DATE = %sysfunc( putn( %sysfunc( date() ), MMDDYY10. ));&lt;BR /&gt;%LET REPORT_DATESTAMP = %sysfunc(strip(&amp;amp;AUDIT_YEAR))-%sysfunc(strip(&amp;amp;AUDIT_MONTH));&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/* ODS CODE */&lt;/P&gt;
&lt;P&gt;ODS EXCEL file="/windows/Reporting/TEST_REPORT_Specilist- &amp;amp;REPORT_DATESTAMP..xlsx" STYLE=EXCEL &lt;BR /&gt;options&lt;SPAN&gt;( &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;sheet_interval="bygroup"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;EMBEDDED_TITLES = 'YES'&lt;BR /&gt;EMBEDDED_FOOTNOTES = 'YES'&lt;BR /&gt;sheet_label="#"&lt;BR /&gt;FLOW = "Header,data"&lt;BR /&gt;absolute_row_height = "23px"&lt;BR /&gt;absolute_column_width = '17,32,20,20,20,10,10'&lt;BR /&gt;EMBED_TITLES_ONCE= 'YES'&lt;BR /&gt;EMBED_FOOTNOTES_ONCE = 'YES'&lt;BR /&gt;start_at1='A,1'&lt;BR /&gt;GRIDLINES = 'ON'&lt;BR /&gt;FROZEN_HEADERS = 'OFF'&lt;BR /&gt;);&lt;/P&gt;
&lt;P&gt;TITLE1 j=left lspace=1 height=15pt font='Arial' BOX=2 bold color=black "Monthly Employee Scorecard";&lt;BR /&gt;TITLE2 j=left lspace=1 height=13pt font='Arial' color=BLACK "Reporting Period: &amp;amp;REPORT_DATESTAMP";&lt;BR /&gt;TITLE3 j=left lspace=1 height=13pt font='Arial' color=BLACK "Team : #byval(Team)";&lt;BR /&gt;TITLE4 j=left lspace=1 height=13pt font='Arial' color=BLACK "Team : #byval(Supervisor)";&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;FOOTNOTE J=RIGHT LSPACE=1 HEIGHT=10PT FONT='Times New Roman' COLOR=BLACK "Report Created On: &amp;amp;DATE";&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PROC PRINT DATA=work.TEMP_DATA noobs&lt;/P&gt;
&lt;P&gt;style(header)=[font = ("Arial") fontsize=11pt just=center VERTICALALIGN=CENTER font_weight = bold backgroundcolor=white foreground=blue borderstyle=solid]&amp;nbsp;&lt;BR /&gt;style (data) = [font_face='Arial' just=center VERTICALALIGN=CENTER bordertopstyle=solid bordertopwidth=0pt borderstyle=solid ];&lt;BR /&gt;By Specialist;&lt;/P&gt;
&lt;P&gt;Var 'Categories'n /Style(data) = {TAGATTR="Type:Sting Wrap:No" };&lt;BR /&gt;Var 'No_of_Random_Audited_Files'n /Style(data) = {TAGATTR="Type:Number Wrap:No"};&lt;BR /&gt;Var 'Total_File_Points'n /Style(data) = {TAGATTR="Type:Number Wrap:No"};&lt;BR /&gt;Var 'Minor_Error_Points'n /Style(data) = {TAGATTR="Type:Number Wrap:No"};&lt;BR /&gt;Var 'Major_Error_Points'n /Style(data) = {TAGATTR="Type:Number Wrap:No"};&lt;BR /&gt;Var 'Actual'n /Style(data) = {TAGATTR="Type:Number format:0.00% Wrap:No"}; &lt;BR /&gt;Var 'Standard'n /Style(data) = {TAGATTR="Type:Number format:0.00% Wrap:No"}; &lt;BR /&gt;RUN;&lt;/P&gt;
&lt;P&gt;ODS EXCEL CLOSE;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2022 04:16:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Format-ODS-Output-Header-created-by-the-BY-Statement/m-p/814984#M25810</guid>
      <dc:creator>Apprentice</dc:creator>
      <dc:date>2022-05-25T04:16:12Z</dc:date>
    </item>
    <item>
      <title>Re: Format ODS Output Header created by the BY Statement</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Format-ODS-Output-Header-created-by-the-BY-Statement/m-p/814997#M25811</link>
      <description>&lt;P&gt;SAS supports the&amp;nbsp;#BYVAR and #BYVAL keywords, which you can specify in a TITLE statement. See &lt;A href="https://blogs.sas.com/content/iml/2021/02/22/byvar-byval-keywords-sas-titles.html" target="_self"&gt;"How to use the #BYVAR and #BYVAL keywords ...in SAS"&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In this case, I think you can get what you want by using&lt;/P&gt;
&lt;P&gt;OPTION BYLINE;&lt;/P&gt;
&lt;P&gt;TITLE3;&lt;/P&gt;
&lt;P&gt;If not, you can use the #BYVAR keyword to insert the name of the BY-group variable ("Specialist") and #BYVAL to insert the value of the current level (eg, "Ada Casusus").&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2022 11:09:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Format-ODS-Output-Header-created-by-the-BY-Statement/m-p/814997#M25811</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2022-05-25T11:09:17Z</dc:date>
    </item>
    <item>
      <title>Re: Format ODS Output Header created by the BY Statement</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Format-ODS-Output-Header-created-by-the-BY-Statement/m-p/815018#M25812</link>
      <description>&lt;P&gt;Thanks Rick_SAS. I'll try your recommendation.&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2022 13:23:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Format-ODS-Output-Header-created-by-the-BY-Statement/m-p/815018#M25812</guid>
      <dc:creator>Apprentice</dc:creator>
      <dc:date>2022-05-25T13:23:29Z</dc:date>
    </item>
  </channel>
</rss>

