x cd /pub/data/acspums/Tools; %let pgm=application_hhlds_povratio; filename pgm "&pgm..sas" ; *---the request from Minxia D. came as: I received a request asking [for] "an estimate for the number of households in Missouri that fall under the poverty guidelines for 130% and 135% (using fy05 guidelines)." We do it using the ACS public use microsample data. 3-29-06, jgb. ----; libname acspums '/pub/data/acspums'; data _null_; merge acspums.mohrecs04(in=inh keep=serialno wgtp type where=(type='1')) acspums.moprecs04(in=inp keep=serialno povpip) end=last; by serialno; if inh and inp and first.serialno then do;; TotHHLDs + wgtp; if povpip <= 135; HHLDS_under135 + wgtp; if povpip <= 130 then HHLDS_under130 + wgtp; end; format _numeric_ comma9.; if last then put TotHHLDs= HHLDS_under130= HHLDS_under135=; run;