%include '/pub/sas/autoexec.sas'; options fmtsearch=(mable22 sasctlgs); options nosource nosource2 nomprint nomlogic nosymbolgen nonotes; libname mable22 '/pub/data/mable22'; %macro doit(state, stab); /* data mable22.&stab._blocks; set mable22.&stab._blocks; tract2 = cats(substr(tract, 1, 4), ".", substr(tract, 5, 2)); run; data mable22.&stab._blocks; length tract $7 ; format tract $7. ; set mable22.&stab._blocks; tract = tract2; drop tract2; run; data mable22.&stab._blocks; retain GEOID State County County3 CountySC tract ; set mable22.&stab._blocks; run; */ proc datasets lib=mable22; modify &stab._blocks ; attrib cbsa20 format=; run; quit; %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); ========================== end comment */ %dostates(n=72);