%include '/pub/sas/autoexec.sas'; options nosource nosource2 nomprint nomlogic nosymbolgen notes; libname mable22 '/pub/data/mable22'; %macro doit(state, stab); data &stab._adds; set mable22.puma12_for_merge; where state = "&state"; run; proc sql; update mable22.&stab._blocks blocks set puma12 = (select puma12 from &stab._adds where geoid = blocks.geoid ); * where geoid in (select geoid from mable22.puma12_for_merge); quit; * Create the views. ; data mable22.&stab.v/view=mable22.&stab.v; merge mable22.&stab._blocks mable22.&stab._counties ; by county; run; %mend doit; /* begin comment ==================================== %dostates(01 02 04 05 06 08 09 10 11 12 13 15 16 17); %dostates(18 19 20 21 22 23 24 25 26 27 28 29 30 31); %dostates(32 33 34 35 36 37 38 39 40 41 42); %dostates(44 45 46 47 48 49 50 53 54 55 56); %dostates(51 72); %dostates(10 11); %dostates(n=52); ========================== end comment */ %dostates(01 02 04 05 06 08 09 10 11 12 13 15 16 17); %include sascode (notify);