Hi All,
I am using title&t"@R/RTF'\qc %str(%bquote(&&myheader&k))"; to set the content of my title in report.
There is a single quote mark in string &&myheader&k, when I use %put to print this macro variable, the output is fine, single quote mark is there, or if I delete @R/RTF'\qc, the title in output also contains single quote.
but if I use title&t"@R/RTF'\qc %str(%bquote(&&myheader&k))", the title in output removed the single quote in my original title. I guess it is caused by single quote in @R/RTF'\qc.
can anyone please advise how to resolve this problem?
Many thanks
Hello,
Is this solving your problem (%-sign !!);
%LET t=1;
%LET k=2;
%LET myheader2=%nrstr(a%'bc);
title; footnote;
title&t. "@R/RTF'\qc %str(%nrbquote(&&myheader&k))";
proc print data=sashelp.class(obs=5); run;
Koen
Hello,
Is this solving your problem (%-sign !!);
%LET t=1;
%LET k=2;
%LET myheader2=%nrstr(a%'bc);
title; footnote;
title&t. "@R/RTF'\qc %str(%nrbquote(&&myheader&k))";
proc print data=sashelp.class(obs=5); run;
Koen
Awesome! Thank you very much!
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.