- data have;
- a=1;s=1;d=1;
- run;
- proc sql noprint;
- select name into: name separated by ' '
- from dictionary.columns
- where memname='HAVE'
- ;
- quit;
- %let prx = %sysfunc (prxparse(s/(\w+)/new_\1/));
- %let new = %sysfunc (prxchange(&prx.,-1., %bquote(&name.)));
- %let prx = %sysfunc (prxparse(s/(\w+)/\1 = new_\1/));
- %let rename = %sysfunc (prxchange(&prx.,-1., %bquote(&name.)));
- %put &name;
- %put array new $ &new;
- %put rename = (&rename.);


雷达卡

京公网安备 11010802022788号







