Hi I want to create a loop for the following code so I can output a range of names... data _null_; do i = 1 to 2; if i = 1 then class = "bank"; if i = 2 then class = "bonds"; end; summary = cats(class,"_summary"); call symputx('summary',summary); Current = cats(class,"_curr"); call symputx('current',current); run; %put &summary.; %put ¤t.; But right now my output looks like this bond_summary bond_curr What I dont understand is why 1) my first i =1 clas = bank didnt appear? 2) why is an "s" missing in my "bond" And then if the above code is run successfully I want to incorporate the following proc sql code but I dont know where to stick the code in the loop. proc sql; create table &summary. as select Market_value from ¤t.; quit; Many thanks for helping!
... View more