x cd /pub/data/acspums/Tools; %let pgm=application_povratio_seniors; filename pgm "&pgm..sas" ; *---the request from Becky Veit, Mo DSS, Jan 21, 2014: Would you be able to get an estimate of persons 65 years and older at or below 85% poverty? ----; libname acspums '/pub/data/acspums'; data _null_; set acspums.moprecs113yr(keep=serialno pwgtp povpip agep) end=last; where agep >= 65 and povpip ne .; *--we only want seniors (65+) for whom poverty status is determined-; Universe + pwgtp; if povpip le 85 then Under85 + pwgtp; format _numeric_ comma9.; cklast: if last then put Universe= Under85= ; run;