With your SAS code, I expect you are getting some type of SAS execution/compilation error, which would be most useful to share.
You will likely find the problem having to do with using quoted-strings and macro variables. A PUT statement will not resolve a macro variable when used with a single-quoted literal. So you need to use double-quotes but since the HTML tag syntax also requires quotes, you must duplicate your quote character for each instance where you want a double-quote to be generated, such as:
1 %let my_quote = Yes, The New Orleans Saints won the Super Bowl!;
2 data _null_;
3 putlog "Hello - I say to you all: " /// """&my_quote""";
4 run;
Hello - I say to you all:
"Yes, The New Orleans Saints won the Super Bowl!"
NOTE: DATA statement used (Total process time):
real time 0.01 seconds
cpu time 0.01 seconds
Scott Barry
SBBWorks, Inc.
Recommended Google advanced search argument, this topic/post:
using macro variables quoted strings site:sas.com