x cd /pub/data/corrlst/Tools; %let pgm=mibl2k_sld02_PC; filename pgm "&pgm..sas"; *----Running this from jgb desktop (Windows SAS). We read the dbf equivalecny file sent by the state of Michigan (attachment to Carolyn Lauer e-mail sent Oct 29, 2002). The orginal dbf file will be zipped and uploaded to the corrlst directory as well. ----*; signon mcdc; filename dbfin 'c:\temp\legdist_blk.dbf'; libname corrlst '/pub/data/corrlst' server=mcdc; proc dbf db4=dbfin out=corrlst; run; proc sort; by cnty tract block; run; data corrlst.mibl2slds02(label='Michigan block to state leg districts 2002' sortedby=county tract block); length County $5 tract $7 block $4 cd108 $2 sldl sldu $3 year $4; set corrlst; retain year '2002'; County='26'||cnty; tract=substr(tract,1,4)||'.'||substr(tract,5,2); cd108=cong_dist; sldl=hou_dist; sldu=sen_dist; label sldl='State Leg District Lower (House)' sldu='State Leg District Upper (Senate)'; keep county -- year; proc contents data=_last_; run;