x cd /pub/data/pums2000/Tools; %let pgm=seniorrx_hispanic; filename pgm "&pgm..sas"; /* ------------------------------------------------------------------------ Program: seniorrx_hispanic Description: Tabulates poverty level for hispanic population for persons whose poverty level has been determined. HTML report stored in /pub/reports/&folder -- see let folder below ------------------------------------------------------------------------ */ options missing='0'; libname pums2000 "/pub/data/pums2000"; libname user "/SAS_temp/user"; proc format; value poverty 001-049 = '<.50' 050-074 = '.50-.74' 075-099 = '.75-.99' 100-124 = '1.00-1.24' 125-149 = '1.25-1.49' 150-199 = '1.50-1.99' 200-224 = '2.00-2.24' 225-249 = '2.25-2.49' 250-299 = '2.50-2.99' 300-high = '3.00 and over'; value $hispan 01 = 'Not Hispanic or Latino' 02 = 'Mexican' 03 = 'Puerto Rican' 04 = 'Cuban' 05 = 'Dominican' 06 = 'Costa Rican' 07 = 'Guatemalan' 08 = 'Honduran' 09 = 'Nicaraguan' 10 = 'Panamanian' 11 = 'Salvadoran' 12 = 'Other Central American' 13 = 'Argentinean' 14 = 'Bolivian' 15 = 'Chilean' 16 = 'Colombian' 17 = 'Ecuadorian' 18 = 'Paraguayan' 19 = 'Peruvian' 20 = 'Uruguayan' 21 = 'Venezuelan' 22 = 'Other South American' 23 = 'Spaniard' 24 = 'Other Spanish or Latino'; run; data allhispanic; set pums2000.moprecs5 (keep=age poverty race1 pweight puma1 hispan); where poverty > 0; where also hispan ne '01'; run; proc sort data=allhispanic; by poverty; run; title1 "Poverty Level - Hispanic Population"; title2 "Source: 2000 Decennial Census 5 Percent PUMS File"; footnote1 "Report generated by seniorrx_hispanic.sas in /pub/data/pums2000/Tools"; %let folder=seniorrx; ods html file="/pub/reports/&folder./&pgm..html" style=sasweb;;ods listing close; ods listing close; proc tabulate data=allhispanic; format poverty poverty. hispan $hispan.; freq pweight; class poverty hispan; var pweight; table all="Total Hispanic or Latino"*f=comma9. hispan*f=comma9., poverty="Estimated Persons by Poverty Ratio" all="Total"*f=comma9. ; run; ods html close;