01-28-2017 02:49 PM
perhaps it's a stupid question, but I'm new to SAS and did not find a solution for that:
How can I tell PROC REPORT to produce a html output with a given table-id, header-id and body-id? Or a given class?
I only found information about giving a cell a html-id.
I'm looking for a parameter for PROC REPORT like ID=ABC or CLASS=XYZ and result should be
<table class="xyz" id="table_ABC" summary="Procedure Report: Detailed and/or summarized report">
thank you very much in advance
01-28-2017 04:53 PM
If you sort your data according to (i.e., BY) some variable or set of variables (e.g., sex if using sashelp.class), and use the same by statement in your proc report, then you can use the #byvall parameter (e.g., title1 "Gender = #byvall"'
Art, CEO, AnalystFinder.com
01-30-2017 11:19 AM
Perhaps a bit fragile and requiring a good understanding of the target destination but the RAW function in conjunction with Escapechar allows you to specify raw code for a destination. You would likely need to create what I think you are asking for in a break statement with BEFORE or AFTER as needed in a Style option.
02-06-2017 03:29 AM
But I will keep your advices in mind for similar tasks in the future.
02-06-2017 10:14 AM
Hi, there are some options you can work with HTMLCLASS=, HTMLID=, and HTMLSTYLE=, as described here: https://support.sas.com/rnd/base/ods/templateFAQ/Template_csstyle.html#htmlclass and
and here's an example of using HTMLCLASS, HTMLID and ANCHOR=