☑ This topic is solved.
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 11-08-2023 06:04 PM
(1189 views)
dummy question about how to call a macro variable in a title statement.
%macro m(name=, data=);
ods listing close;
ods rtf file=".../l_&name..rtf";
title '&name listing'; *** how can I call the "name" variable in title statement?
proc print data=&data noobs;
var usubjid visit result ;
run;
ods rtf close;
ods listing;
%mend;
%m(bmi, demo);
1 ACCEPTED SOLUTION
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Repeat until nauseated: Macro variables do not resolve inside single quotes.
title '&name listing';
should be
title "&name listing";
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Repeat until nauseated: Macro variables do not resolve inside single quotes.
title '&name listing';
should be
title "&name listing";
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Thanks! Should have checked for that.