data test;
input onezz two threezz;
datalines;
1 2 3
;
data _null_;
set sashelp.vcolumn end=lr;
where libname='WORK' and memname='TEST';
if _n_ = 1 then
call execute('proc datasets lib=work nolist; modify test;');
if substr(name,length(name)-1,2)='zz' then
call execute(compbl(cat('rename ', name, '=', tranwrd(name, 'zz', ''), ';')));
if lr then call execute('quit;');
run;
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.