x cd /pub/data/georef/Tools; %let pgm=cnvt_rsa100; filename pgm "&pgm..sas"; *---read the proposed 100k (size category vs. 65k alternative) Rural Statistical Area defns. Per xls file from the Census Bureau, e-mailed to SDCs 11-5-07. John Blodgett, oseda, under contract with Mo Census Data Center. ---; libname georef '/pub/data/georef'; filename csvin '/pub/data/georef/rsa100k.csv'; data georef.rsa100(label='County Components of rural stat areas as proposed by CB 11-07'); infile csvin dsd firstobs=3; length County Fipco $5 State $2 _CntyName $32 CntyPop 5 RSAPop 5 Group $4 rsaId $3 ; length _stname $32; input County _stname _cntyname--rsaId; State=substr(county,1,2); Fipco=County; format County $county. ; Group=translate( right(group),'0',' '); rsaId=translate( right(rsaId),'0',' '); drop _: ; run; data mo; set georef.rsa100(where=(state='29')); run; proc print data=mo; by group notsorted rsaid; id fipco; title 'Missouri Subset of georef.rsa100'; title2 'Sorted by RSA'; run; proc sort data=mo out=bycnty; by county; run; proc print data=bycnty; id fipco; var county rsaid group cntypop rsapop; title 'Missouri Subset of georef.rsa100'; title2 'Sorted by County (FIPCO)'; run;