x cd /mscdc/data/stf903/Tools; %let pgm=xpt_sl090ca; filename pgm "&pgm..sas"; *--Convert xpt versions of slvl090 datasets to regular sets and create indices for them--; x cd /mscdc/data/stf903/slvl090.bystate; libname sl090 '/mscdc/data/stf903/slvl090.bystate'; %macro doit(stab); data _null_; rc=system("unzip /mscdc/data/stf903/sl090xpt/&stab.sl090.zip"); rc=system("ls -l &stab.sl090.xpt"); if rc > 0 then abort; run; libname sl090x xport "&stab.sl090.xpt"; data sl090.&stab.sl090; set sl090x.&stab.sl090 end=last; if last then put county= _n_=; run; /* ******for now, skip the indexing step. We also need to rebuild the index for Alabama.***** proc datasets library=sl090; &stab.dify mosl090; index create sl90=(county cousubfp placefp tract aianafp artli urbarea urbanrur cd bg); run; ********* */ libname sl090x clear; x rm -f &stab.slo090.xpt; %mend doit; options mprint; %doit(ca) ; *--do in separate run xpt_sl090ca--;