<?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 html row ids in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/html-row-ids/m-p/27050#M4315</link>
    <description>Hi there,&lt;BR /&gt;
&lt;BR /&gt;
I would like to know if is possible to add the attribute ID for each TR tag on a HTML table produced by the proc report.&lt;BR /&gt;
&lt;BR /&gt;
I would like to get something like this with proc report or proc print&lt;BR /&gt;
&lt;BR /&gt;
....&lt;BR /&gt;
....&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;&lt;BR /&gt;
I already have a table with ID for each column.&lt;BR /&gt;
&lt;BR /&gt;
ods listing close;&lt;BR /&gt;
ods html file='teste.html' style=fancyPrinter;               &lt;BR /&gt;
&lt;BR /&gt;
proc report data=sashelp.class nowd;  &lt;BR /&gt;
&lt;BR /&gt;
	column  name sex age height; &lt;BR /&gt;
 &lt;BR /&gt;
	define name / display&lt;BR /&gt;
		style(COLUMN) = {tagattr='id="1"'};  &lt;BR /&gt;
	define sex / display&lt;BR /&gt;
		style(COLUMN) = {tagattr='id="2"'};  &lt;BR /&gt;
	define age / display&lt;BR /&gt;
		style(COLUMN) = {tagattr='id="3"'};    &lt;BR /&gt;
	define height / display&lt;BR /&gt;
		style(COLUMN) = {tagattr='id="4"'};     &lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
ods html close;&lt;/B&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Thanks</description>
    <pubDate>Sun, 22 Jun 2008 21:11:49 GMT</pubDate>
    <dc:creator>BrunoSilva</dc:creator>
    <dc:date>2008-06-22T21:11:49Z</dc:date>
    <item>
      <title>html row ids</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/html-row-ids/m-p/27050#M4315</link>
      <description>Hi there,&lt;BR /&gt;
&lt;BR /&gt;
I would like to know if is possible to add the attribute ID for each TR tag on a HTML table produced by the proc report.&lt;BR /&gt;
&lt;BR /&gt;
I would like to get something like this with proc report or proc print&lt;BR /&gt;
&lt;BR /&gt;
....&lt;BR /&gt;
....&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;&lt;BR /&gt;
I already have a table with ID for each column.&lt;BR /&gt;
&lt;BR /&gt;
ods listing close;&lt;BR /&gt;
ods html file='teste.html' style=fancyPrinter;               &lt;BR /&gt;
&lt;BR /&gt;
proc report data=sashelp.class nowd;  &lt;BR /&gt;
&lt;BR /&gt;
	column  name sex age height; &lt;BR /&gt;
 &lt;BR /&gt;
	define name / display&lt;BR /&gt;
		style(COLUMN) = {tagattr='id="1"'};  &lt;BR /&gt;
	define sex / display&lt;BR /&gt;
		style(COLUMN) = {tagattr='id="2"'};  &lt;BR /&gt;
	define age / display&lt;BR /&gt;
		style(COLUMN) = {tagattr='id="3"'};    &lt;BR /&gt;
	define height / display&lt;BR /&gt;
		style(COLUMN) = {tagattr='id="4"'};     &lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
ods html close;&lt;/B&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Thanks</description>
      <pubDate>Sun, 22 Jun 2008 21:11:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/html-row-ids/m-p/27050#M4315</guid>
      <dc:creator>BrunoSilva</dc:creator>
      <dc:date>2008-06-22T21:11:49Z</dc:date>
    </item>
    <item>
      <title>Re: html row ids</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/html-row-ids/m-p/27051#M4316</link>
      <description>Hi,&lt;BR /&gt;
  I do not believe there is a way to "touch" the &amp;lt;tr&amp;gt; -- at least -inside- PROC REPORT syntax. That's because the &amp;lt;tr&amp;gt; tag is generated by the beginning of the row of data being sent to ODS. And, since the beginning of the row event in ODS -only- generates the &amp;lt;tr&amp;gt; tag, there are no hooks to that event inside PROC REPORT.&lt;BR /&gt;
&lt;BR /&gt;
  You can probably modify or create your own HTML tagset using PROC TEMPLATE for tagset templates, in order to put extra text into the &amp;lt;tr&amp;gt; -- because it is the TAGSET template that handles the row event. And, also, if you want to create a counter to put into the rows, then you'd need to get into the details of TAGSET template and event processing.&lt;BR /&gt;
&lt;BR /&gt;
If you do not have experience with Proc Template for TAGSET templates, you may with to contact Tech Support for more help with this question.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Mon, 23 Jun 2008 17:13:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/html-row-ids/m-p/27051#M4316</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2008-06-23T17:13:57Z</dc:date>
    </item>
    <item>
      <title>Re: html row ids</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/html-row-ids/m-p/27052#M4317</link>
      <description>Thanks &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;</description>
      <pubDate>Tue, 24 Jun 2008 16:22:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/html-row-ids/m-p/27052#M4317</guid>
      <dc:creator>BrunoSilva</dc:creator>
      <dc:date>2008-06-24T16:22:00Z</dc:date>
    </item>
  </channel>
</rss>

