%let tbltit=;
data _null_;
length title $200;
title="Summary of King's College VascuQoL Domain Results by Visit";
call symputx('tbltit', title, 'g');
run;
%*-- trim and quote --*;
%let tbltit=%qtrim(%superq(tbltit));
%*-- check --*;
title "&tbltit";
proc freq data=sashelp.class;
tables age;
run;
title;
%*-- on lst
Summary of King's College VascuQoL Domain Results by Visit
The FREQ Procedure
Cumulative Cumulative
Age Frequency Percent Frequency Percent
--------------------------------------------------------
11 2 10.53 2 10.53
12 5 26.32 7 36.84
13 3 15.79 10 52.63
14 4 21.05 14 73.68
15 4 21.05 18 94.74
16 1 5.26 19 100.00
--*;
%let qTitle=;
data _null_;
length title $200;
title='Summary of M&M Consumption at SAS''s campus';
call symputx('qTitle', quote(strip(title)), 'g');
run;
%*-- check --*;
title &qTitle;
proc sql;
select 'a lot' as total from sashelp.class(obs=1);
quit;
title;
%*-- on lst
WARNING: Apparent symbolic reference M not resolved.
...
Summary of M&M Consumption at SAS's campus
total
-----
a lot
--*;
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.