Hi Everyone, I also wanted to share another solution that looks like it is working (found on another site). Not sure what the "risks" or blind spots are with this one, but wanted to add this to the thread. data _null_;
set sashelp.vtable end = eof;
/*Replace xx with your two-letter dataset prefix*/
where libname = upcase('work') and memname eq: upcase('TE') and memtype = 'DATA';
if _n_ = 1 then call execute('proc datasets lib = work;');
call execute(catx(' ','modify',memname,'; rename var1 = newvar1 var2 = newvar2; run;'));
if eof then call execute('quit;');
run;
... View more