Hi, All:
I would like to display footnote, ***NA means "Not Applicable"***, by using PROC REPORT's Line statement, like my following code.
But this code does not generate what I want, only one period (".").
%let _foot1=NA means "Not Applicable".;
data test;
do item=1 to 5 by 1;
pagenum=1; output;
end;
run;
ods rtf file="PleaseSpecifyYourOwnFolder\test.rtf";
proc report data=test style(report)={rules=groups frame=above};
column item pagenum;
define pagenum / order noprint;
define item / display;
break after pagenum / page;
compute after _page_;
line "&_foot1.";
endcomp;
run;
quit;
ods rtf close;I tried to use quoting like this, ***%let _foot1=%str(NA means %"Not Applicable%".);***, but same result.
I think there may be problems about Double Quotations, because if deleting Double Quotations, i.e., using ***%let _foot1=NA means Not Applicable***, I can display what I want.
I have no idea, please help me.
Thank you in advance.
Hi, Astounding-san:
Your code worked. Wonderful.
Thank you for your kind cooperation.
Or
%let _foot1=NA means ""Not Applicable"".;
Two quotes resolve as one in general.
So your resolution of
line "&_foot1.";
becomes
line "NA means ""Not Applicable"".";
So
proc report data=test style(report)={rules=groups frame=above};
column item pagenum;
define pagenum / order noprint;
define item / display;
break after pagenum / page;
compute after _page_;
line "NA means ""Not Applicable"".";
endcomp;
run;
runs just fine. This use two quotes in literal text works almost anywhere in SAS code.
Such as
data work.junk;
x="This is a string with "" embedded in a variable.";
run;
Hi, ballardw-san:
Your answer also works greatly.
Thank you for quick response.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and save with the early bird rate—just $795!
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.
Ready to level-up your skills? Choose your own adventure.