Use the procedure option STYLE(<location>)=[tagattr='ID="MY_ID"'] to set a TABLE ID.
- Proc PRINT use STYLE(table)
- Proc REPORT use STYLE(report)
Example:
ods html file='class.html';
proc print data=sashelp.class style (table) = [tagattr='id="MyId"'];
proc report data=sashelp.class style (report) = [tagattr='id="MyId#2"'];
run;
ods html close;
Will produce html source containing
<table class="table" id="MyId" cellspacing="0" cellpadding="5" rules="all" frame="box" bordercolor="#C1C1C1" summary="Procedure Print: Data Set SASHELP.CLASS">
/pre>
and
<table class="table" id="MyId#2" cellspacing="0" cellpadding="5" rules="all" frame="box" bordercolor="#C1C1C1" summary="Procedure Report: Detailed and/or summarized report">
... View more