x cd /pub/data/georef/Tools; %let pgm=zctageos; filename pgm "&pgm..sas"; *---Create georef.zctageos, a dataset that provides geographic info every 5-digit ZIP Census Tract Area in the U.S. as defined for the 2000 census. Source of the info is the mable2k database, which in turn is derived from 2000 SF1 headers info and tigerua files (for the Urban/ Rural). John Blodgett, Oct. 2002. Done for fun. ---*; %libname(mable2k); filename csvin ("../&pgm..geocorr1.csv" "../&pgm..geocorr2.csv"); *<---generated using Geocorr2k. 2 datasets because we had to run it wice. Once for states Al thru Mt and once for Ne thru Wy--; data zctaco(keep=zcta5 state county pop2k) zctama(keep=zcta5 state msacmsa pmsa pop2k) zctaua(keep=zcta5 state ua pop2k) zctapl(keep=zcta5 state placefp) zctapopden(keep=zcta5 popden); infile csvin dsd missover firstobs=2 obs=1000; length zcta5 $5 state $2 county $5 placefp $5 ur $1 ua $5 msacmsa pmsa $4 popden $6 pop2k 8; input zcta5 county--pop2k; if zcta5='zcta5' then delete; *--header line--; run;