x cd /pub/data/mable2k/Tools; %let pgm=welker_query; filename pgm "&pgm..sas"; *--Per data request from Mike Welker, El Paso, TX, 2-09 wanting to estimate acres of "developed" land in Texas. This is the best we can do for him. John Blodgett, Feb, 2009. --*; %libname(mable2k); libname user '/tmp/scrtch/user'; *----we pull the land area for all census blocks that are either classified as urban or which have a pop density indicating occupied-- ; data blks; set mable2k.txv2(keep=landsqmi county popden ur pop2k hus2k); where ur='U' or pop2k; where also landsqmi; poppersqmi=pop2k/landsqmi; if hus2k then huspersqmi=hus2k/landsqmi; if poppersqmi < 100 then poppersqmi=round(poppersqmi); else poppersqmi=round(poppersqmi,100); if huspersqmi < 100 then huspersqmi=round(huspersqmi); else huspersqmi=round(huspersqmi,100); run; proc univariate data=blks; class ur; var poppersqmi huspersqmi; var pop2k hus2k landsqmi; run; data _null_; set blks end=last; if ur='U' or poppersqmi > 700; *--This was the Q3 (75th pctile) break point for the popersqmi for non-0 rural blocks--; Developed + landsqmi; if last then put _all_; run;