%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
--*;
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
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.