x cd /pub/data/acspums/Tools; %let pgm=application_spanishLTD_byage; filename pgm "&pgm..sas" ; *---For John Mier at DSS in Jeff City we do a breakdown of the persons who speak Spanish and have limited English by age (specifically, the 16-60 cohort). We use the latest (2009-2011) 3yr ACS pums data by PUMA. For user we already pulled the total persons who speak spanish with LTD english from usmcdcprofiles3yr in acs2011. *******************************ON HOLD***************************************************** ----; ods html file="/pub/data/acspums/temprepts/&pgm..html" style=sasweb; proc format; value age 15-60='15 to 60' 5-14,61-high="Under 15 or Over 60" ; value $eng "1"="Very Well" "2","3","4"="Less Than Very Well"; run; libname user '/SAS_temp/user'; libname acspums '/pub/data/acspums' access=readonly; title "&pgm.: Breakdown of Persons Who Speak Spanish but LTD English by Age by PUMA"; title2 "Universe: Persons Age 5+ Who Speak Spanish at Home"; data spanish_ltdEnglish; set acspums.moprecs113yr(in=inp keep=serialno puma pwgtp agep eng lanp); where agep ge 5; where also lanp='625'; *--language spoken at home is Spanish---; Cases=1; Persons=pwgtp; drop pwgtp; run; proc tabulate data=spanish_ltdEnglish ; **freq pwgtp; class puma eng agep; label cases='Unweighted cases' persons='Weighted cases'; var cases persons; table all='Missouri totals' puma, all='All ages over 5' agep , eng * (cases persons)*(sum=' '*f=comma7. rowpctsum='%' ); lable puma='PUMA'; format eng $eng. agep age. puma $mopuma. ; footnote h=1 'Produced by the Missouri Census Data Center Using Data from 2009-2011 (3-year) ACS PUMS';