proc contents data=sashelp.class noprint out=s(keep=name type) ;run; proc sort data=s;by type ;run; proc sql ; select strip(name)||'1',name into:ne1-:ne5,:n1-:n5 from s ; quit; %put &n1 &n2 &n3 &n4 &n5 &ne1 &ne2 &ne3 &ne4 &ne5; %macro copy1; %do i=1 %to 5 ; data ex1 ; set sashelp.class ; &&ne&i.=&&n&i.; run; %end; %mend; %copy1 ; i want to create 5 new variables like age1,name1,sex1,height1,weight1 so i wrote one applications but i am getting only one variable what is the issue in that application
... View more