🔒 This topic is solved and locked.
Need further help from the community? Please
sign in and ask a new question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Posted 09-22-2021 01:05 PM
(889 views)
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
1 ACCEPTED SOLUTION
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
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
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Awesome! Thank you very much!