DATA Step, Macro, Functions and more

issue with ods style

Accepted Solution Solved
Reply
Regular Contributor
Posts: 204
Accepted Solution

issue with ods style

Using this:

 

ods text = 'This is ^{style [color=red] Red}'; 

This:

 

This is ^{style [color=red] Red}

 

is printed in the result tab and html tab rather than Red being printed red. I cannot see there being anything wrong.


Accepted Solutions
Solution
‎05-15-2018 04:36 AM
PROC Star
Posts: 1,283

Re: issue with ods style

[ Edited ]
Posted in reply to csetzkorn

Use ODS Escapechar like this

 

ods escapechar='^';
ods text = 'This is ^{style [color=red] Red}';
proc print data=sashelp.class;
run;

 

View solution in original post


All Replies
Solution
‎05-15-2018 04:36 AM
PROC Star
Posts: 1,283

Re: issue with ods style

[ Edited ]
Posted in reply to csetzkorn

Use ODS Escapechar like this

 

ods escapechar='^';
ods text = 'This is ^{style [color=red] Red}';
proc print data=sashelp.class;
run;

 

☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 1 reply
  • 123 views
  • 2 likes
  • 2 in conversation