Dear experts, Need help on looping column names (varlist) and create a new table with unique name and id.
proc contents data=patch.Windows_patch out=patch.contents noprint; run; proc sql ; select name into :varlist separated by ' ' from patch.contents where name like '%CHG%'; %let n=&obs; quit;
proc sql;
do i = 1 to dim(Patch) ; create table Patch.Patch(i) as select unique a.Name, a.CI_ID, B.App, b.App_ID from Patch.Troux a, Patch.Win_servers b where a.CI_ID=b.App_ID and b.Patch(i) is not null order by a.Name;
end; quit;
... View more