<?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 HTML Proc Report - Change or add a Table ID in the HTML ouput. How? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/ODS-HTML-Proc-Report-Change-or-add-a-Table-ID-in-the-HTML-ouput/m-p/848922#M335638</link>
    <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13549"&gt;@Cynthia_sas&lt;/a&gt;&amp;nbsp;!!!...&lt;/P&gt;
&lt;P&gt;Exactly what I was looking for!&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":hugging_face:"&gt;🤗&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 10 Dec 2022 19:08:16 GMT</pubDate>
    <dc:creator>SAS_Question</dc:creator>
    <dc:date>2022-12-10T19:08:16Z</dc:date>
    <item>
      <title>ODS HTML Proc Report - Change or add a Table ID in the HTML ouput. How?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-HTML-Proc-Report-Change-or-add-a-Table-ID-in-the-HTML-ouput/m-p/848749#M335554</link>
      <description>&lt;P&gt;Have:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
%LET WGHTML=P:\TEMP;
%LET WGINDEX=index.html;

ods html5 path="&amp;amp;WGHTML.\" (no_top_matter no_bottom_matter)
	style=HTMLBlue
	file="&amp;amp;WGINDEX."
	(title="MyTitle")
;

/*
style(report)=[tagattr='id="unique_id"']
is not outputting a table ID in the html...how come??!
*/
proc report data=sashelp.cars nowd style(report)=[tagattr='id="unique_id"'];
column Make Model Cylinders;
define Make / group;
compute after Make;
	line ' ';
endcomp;
run;

ods html5 close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;No "unique_id" id output inside HTML page:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="not working.PNG" style="width: 696px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/78244iFDEF856C747901A9/image-size/large?v=v2&amp;amp;px=999" role="button" title="not working.PNG" alt="not working.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What I want is this:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to add an ID for my proc report table output, so I can add more css layouts etc.&lt;/P&gt;
&lt;P&gt;So the ID comes here:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Want.PNG" style="width: 771px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/78241iABE600D0FDD4286E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Want.PNG" alt="Want.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My question is:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-How can I add a unique table ID to the ouput in the SAS ODS/Proc Report step?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried as you can see in the SAS-code to do it with&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;style(report)=[tagattr='id="unique_id"']&lt;/PRE&gt;
&lt;P&gt;but no luck...&amp;nbsp;&lt;/P&gt;
&lt;P&gt;what am I missing here? Please any help?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2022 16:34:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-HTML-Proc-Report-Change-or-add-a-Table-ID-in-the-HTML-ouput/m-p/848749#M335554</guid>
      <dc:creator>SAS_Question</dc:creator>
      <dc:date>2022-12-09T16:34:53Z</dc:date>
    </item>
    <item>
      <title>Re: ODS HTML Proc Report - Change or add a Table ID in the HTML ouput. How?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-HTML-Proc-Report-Change-or-add-a-Table-ID-in-the-HTML-ouput/m-p/848812#M335574</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Usually, I only use TAGATTR with the&amp;nbsp; ODS destinations for EXCEL. The ODS HTML destinations have an attribute called HTMLID that you can use in a simple style override, as shown below. It may not always go into the place you want it to go. I wasn't sure it would work with ODS HTML5, but in this case, it seems to have worked -- I used "wombat" as the attribute value for HTMLID so I could find it easily in my search:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cynthia_sas_1-1670619466646.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/78270iE2518F5DF8EE8AB3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cynthia_sas_1-1670619466646.png" alt="Cynthia_sas_1-1670619466646.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Hope this helps,&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cynthia_sas_0-1670619397401.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/78269i87711A045EE2997E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cynthia_sas_0-1670619397401.png" alt="Cynthia_sas_0-1670619397401.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2022 20:57:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-HTML-Proc-Report-Change-or-add-a-Table-ID-in-the-HTML-ouput/m-p/848812#M335574</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2022-12-09T20:57:58Z</dc:date>
    </item>
    <item>
      <title>Re: ODS HTML Proc Report - Change or add a Table ID in the HTML ouput. How?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-HTML-Proc-Report-Change-or-add-a-Table-ID-in-the-HTML-ouput/m-p/848922#M335638</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13549"&gt;@Cynthia_sas&lt;/a&gt;&amp;nbsp;!!!...&lt;/P&gt;
&lt;P&gt;Exactly what I was looking for!&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":hugging_face:"&gt;🤗&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Dec 2022 19:08:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-HTML-Proc-Report-Change-or-add-a-Table-ID-in-the-HTML-ouput/m-p/848922#M335638</guid>
      <dc:creator>SAS_Question</dc:creator>
      <dc:date>2022-12-10T19:08:16Z</dc:date>
    </item>
  </channel>
</rss>

