x cd /pub/data/acspums/Tools; %let pgm=application_unemployed_16to24; filename pgm "&pgm..sas" ; *---the request from Sam Duncan, Jackson school district: " I am looking for data regarding people aged 16-24 who are not enrolled in school. Want data on employment or under employment. Would like to have this for Cape Girardeau county if possible." We were unable to find any acs base tables or even 2000 sf3 tables with this detail so we are using PUMS. We cannot get Cape G county geo detail so we will use data for the 2 PUMAs in the area and we shall use 2 years worth of data. The percentages are what really count here rather than the counts. He needs to apply the percentages to the latest estimates of persons aged 18-24 in CG county. ----; libname user '/SAS_temp/userb'; libname acspums '/pub/data/acspums' access=readonly; proc format; value yesno 1='Yes' 0='No '; run; run; data xtract; set acspums.moprecs05(in=inp keep=puma agep pwgtp sch wkhp esr in=in05) acspums.moprecs06(in=inp keep=serialno puma agep pwgtp sch wkhp esr) ; where puma in ('02000','02100') and (18 <= agep <=24); InSchool=(sch in ('2','3')); if wkhp lt 0 then PartTime=.; else if wkhp <30 then PartTime=1; else PartTime=0; InWorkForce=(esr ne 6); if InWorkForce then Employed= (esr ne 3); if in05 then Year='2005'; else Year='2006'; run; ods html style=sasweb file="&pgm..html"; proc tabulate data=xtract missing; class year puma InSchool PartTime; var employed inworkforce; freq pwgtp; format inschool parttime yesno. puma $mopuma.; title "&pgm.: Estimating Employment Status of 18 -to-24 year olds in SE Missouri Per 2005/2006 ACS Data"; footnote .h=1 "PartTime defined as worked < 30 hrs per week in prev yr. Missing value says worked 0 hrs per week last yr"; table (year all="Both Years Combined")*(puma all="Both PUMAs combined"), (InSchool All)*(PartTime All), all='Total Persons' InWorkForce*(sum="Number"*f=comma7. mean="Pct"*f=percent8.1) employed*(sum="Number"*f=comma7. mean="Pct"*f=percent8.1); run; *--note that without the run statement the output from this tabulate step would not be written to the html file--; ods html close;