x cd /pub/data/acspums/Tools; %let pgm=application_females19_44_bypov; filename pgm "&pgm..sas" ; *---the request from Mohammed Shahidullah, Ph.D., Illinois Stte Demographer. Sent spreadsheet showing data used in the past for denominators in their statewide fertility assessments. It include an interesting poverty status category (below/above 200% of poverty level). May, 2011, jhgb ----; title "Demographic Estimates for State of Illinois"; title2 "Source: American Community Survey PUMS Files"; footnote h=1 "Program by J. Blodgett, Missouri Census Data Center"; footnote2 h=1 "From program in acspums/Tools/&pgm..sas"; libname acspums '/pub/data/acspums'; libname user '/SAS_temp/userb'; /* ========================begin comment==================================== data &pgm; set acspums.usprecs08(keep=st pwgtp povpip agep sex rac1p hisp in=in08) acspums.usprecs09(keep=st pwgtp povpip agep sex rac1p hisp in=in09); where st='17' and agep >=19 and agep <=44 and sex='2' ; *---Illinois females of child-bearing ages----; retain Year '2008'; if in09 then Year='2009'; else Year='2008'; if povpip=. then Pov_Category='Not Determined '; else if povpip <200 then Pov_category='< 200% of FPL'; else Pov_category='>= 200% of FPL'; raceh='0'; output; if hisp='01' then raceh='4'; else raceh='3'; output; if rac1p='1' then do; raceh='1'; output; end; if rac1p='2' then do; raceh='2'; output; end; run; ==========================end comment====================================== */ proc format; value agecat 19='19 years old' 20-24='20 to 24' 25-29='25 to 29' 30-34='30 to 34' 35-39='35 to 39' 40-44='40 to 44'; value $raceh 0=' ' 1='White alone' 2='Black alone' 3='Hispanic' 4='Non-hispanic'; run; ods html file = "&pgm..html"; proc tabulate data=&pgm format=comma11.; by st year; format st $state.; freq pwgtp; class agep pov_category raceh; format agep agecat. raceh $raceh.; label agep='Age cohort' st='State'; table (pov_category all='All Females') * raceh=' ', all='19-44' agep *f=comma9.; run;