x cd /pub/data/sf12000/Tools; %let pgm=agersexh_query3; filename pgm "&pgm..sas"; *---Use the sf1.agersexh data to handle following query: Hi, John: I need working age population (age 16-64) broken down by gender, race, and Hispanic origin. Just need race alone and then a combined multi-race category. I don't need the white, not hispanic category. Need this at the MO county level. Thanks so much, Debbie ---; title 'Missouri Working Age Population by Sex, Race (Alone) and Hispanic Origin'; *--Save output for web access in html format--; ods html file="/pub/reports/misc/mo/working_age_by_race_hispanic_gender" style=sasweb; libname sf1 '/pub/data/sf12000'; libname user '/SAS_temp/user'; proc format; value $h '0'='Non-Hisp.' '1'='Hispanic'; value $r '1w'='White' '2b'='Black' '3i'='Indian' '4a'='Asian' '5h'='Hawn + PI' '6o'='Other' mr='Multi Race'; run; options missing='0'; *<---so the cells with no data print as 0's instead of .'s--; options nodate; proc tabulate data=sf1.moagersexh; where 16 <= age <= 64 and race ne ' '; class county sex race hispanic ; format county $mocnty. race $r. hispanic $h.; var persons; table (county all='Missouri totals') * (all='Total' sex), (all='Total Pop' race=' ' hispanic=' ')*persons=' '*sum=' '*f=comma7.; footnote 'Generated by setup in ' 'sf12000/Tools/agersexh_query3.sas' ' Using Data from SF1, MO'; run;