- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
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.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
%let _foot1 = 'NA means "Not Applicable".';
Then later:
line &_foot1.;
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
%let _foot1 = 'NA means "Not Applicable".';
Then later:
line &_foot1.;
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Hi, Astounding-san:
Your code worked. Wonderful.
Thank you for your kind cooperation.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
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;
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Hi, ballardw-san:
Your answer also works greatly.
Thank you for quick response.