The SAS Output Delivery System and reporting techniques

An interesting behavior of proc REPORT

Reply
Contributor
Posts: 33

An interesting behavior of proc REPORT

Hello everyone,

I have faced an interesting problem – I want to append some html tags to raw data in a SAS table. The purpose of this is that I want to make values of ACROSS variable to appear in different colors in HTML output generated by proc REPORT.

Within DATA STEP I change values :
‘value1’ ą ‘value1
‘value2’ ą ‘value2
and so on.

The interesting behavior of proc REPORT is that it replaces special symbols ‘<‘ and ‘>’ with < and > in HTML output. So, instead of seeing ‘value1’ in red and value2 in blue through internet browser, I see the whole expression ‘value1’ and ‘value2’.

Is it possible to set up proc REPORT or ODS options so that it would not replace special html symbols with their appropriate html codes ?

Thank you.
SAS Employee
Posts: 22

Re: An interesting behavior of proc REPORT

Try adding the following to your PROC REPORT statement:

proc report data=dsn nowd
style(column)=[protectspecialchars=off];
Contributor
Posts: 33

Re: An interesting behavior of proc REPORT

Thank you Kathryn a lot.. it worked Smiley Happy

with best regards,
Sarunas
Ask a Question
Discussion stats
  • 2 replies
  • 155 views
  • 0 likes
  • 2 in conversation