%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
--*;
Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.
Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.
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.