%include '/pub/sas/autoexec.sas'; libname user '/home/riceg/geocorr_adds/temp'; libname mable18 '/home/riceg/geocorr_adds/mable18'; libname adds '/home/riceg/geocorr_adds/out'; %macro doit(state,stab); data _null_; file stdout; put "Processing &stab.tgrlnfaces"; run; data mable18.&stab.tgrlnfaces; set mable18.&stab.tgrlnfaces; if UR = 'U' or UR = 'R'; run; data mable18.&stab.tgrlnfaces; merge mable18.&stab.tgrlnfaces adds.&stab.tgrlnfaces; by county tract block; if cd115 = . then cd115 = cd114; if sldu16 = . then sldu16 = sldu14; if sldl16 = . then sldl16 = sldl14; run; %mend doit; /* Comment out ================================= %dostates(01 02 04 05 06 08 09 10 11 12,msgs=1); %dostates(13 15 16 17 18 19 20 21 22 23 24 25 26 27 28,msgs=1); %dostates(29 30 31 32 33 34 35 36 37 38 39 40 41 42 44 45 46 47,msgs=1); %dostates(48 49 50 53 54 55 56,msgs=1) ; %dostates(51,msgs=1) ; ================================= End commented out */ %dostates(46,msgs=1) ;