%*---This module creates the sf12000x defn for the MCDC extract to create the variables and align the dataset for metadata to be used as reference, create trends and datasets data files. Stored as module invoke_dovars.sas in the sf12000x/Tools directory. ejc, March 2002. --; *--Revision History: --*; %let display=1; %*<--This parm was not available when original coding was done on this filetype. It should never get changed from this default value. Having it assigned here just avoids all the warning messages. --*; %let table=Total Population Trends; %let universe=Total Population; %let RefTables=P1; %let lvl=0; %let pctof=; %dovar(totpop,Total Population,P1i1,fmt=comma8.) %dovar(totpop90,Total Population 1990,totpop90,fmt=comma8.,comment=variable derived by using totpop in stf901x2 datafile) %dovar(change,%str(Change in Population 1990-2000),%str(totpop - totpop90),fmt=comma8.) %dovar(pctchange,%str(Percent Change in Population 1990-2000),%str(change / totpop90 * 100),fmt=5.1) %let display=0; %let RefTables=P12; %dovar(male,Males,p12i2,fmt=comma8.) %dovar(female,Females,p12i26,fmt=comma8.) %let display=1; %let RefTables=; %dovar(poppsqmi,Population Density,%str(if areasqmi gt 0 then poppsqmi=(totpop/areasqmi)),fmt=5.1) %dovar(areasqmi,Area Sq. Mile,areasqmi,fmt=comma7.) %let table=Age; %let universe=Population; %let RefTables=P12; %let lvl=2; %let pctof=TotPop; %dovar(age0_4,Under 5 Years,%str(sum(of(p12i3 p12i27)),fmt=comma8.) %dovar(age5_9,age 5 to 9 Years,%str(sum(of p12i4 p12i28)),fmt=comma8.) %dovar(age10_14,10 to 14 Years,%str(sum(of p12i5 p12i29)),fmt=comma8.) %dovar(age15_17,15 to 17 Years,%str(sum(of p12i6 p12i30)),fmt=comma8.) %dovar(age18_19,18 to 19 Years,%str(sum(of p12i7 p12i31)),fmt=comma8.) %dovar(age20_24,20 to 24 Years,%str(sum(of p12i8-p12i10 p12i32-p12i34)),fmt=comma8.) %dovar(age25_34,25 to 34 Years,%str(sum(of p12i11 p12i12 p12i35 p12i36)),fmt=comma8.) %dovar(age35_44,35 to 44 Years,%str(sum(of p12i13 p12i14 p12i37 p12i38)),fmt=comma8.) %dovar(age45_54,45 to 54 Years,%str(sum(of p12i15 p12i16 p12i39 p12i40)),fmt=comma8.) %dovar(age55_59,54 to 59 Years,p12i17+p12i41,fmt=comma8.) %dovar(age60_64,age60 to 64 Years,%str(sum(of p12i18 p12i19 p12i42 p12i43)),fmt=comma8.) %dovar(age65_74,65 to 74 Years,%str(sum(of p12i20 p12i21 p12i22 p12i44 p12i45 p12i46)),fmt=comma8.) %dovar(age75_84,75 to 84 Years,%str(sum(of p12i23 p12i24 p12i47 p12i48)),fmt=comma8.) %dovar(over85,85 Years and Over,%str(sum(of p12i25 p12i49)),fmt=comma8.) %let RefTables=P13; %let pctof=; %let lvl=1; %let pctof=; %dovar(median_age,Median Age,p13i1,fmt=5.1,wtvar=totpop) %let RefTables=P12; %let lvl=2; %let pctof=TotPop; %dovar(age17_down,17 and Under,%str(sum(of age0_4 age5_9 age10_14 age15_17)),fmt=comma8.) %dovar(age18_24,18 to 24 Years,%str(sum(of age18_19 age20_24)),fmt=comma8.) %dovar(age25_44,25 to 44 Years,age25_34+age35_44,fmt=comma8.) %dovar(age45_64,45 to 64 Years,%str(sum(of age45_54 age55_59 age60_64)),fmt=comma8.) %dovar(over62,62 Years and Over,%str(sum(of p12i19-p12i25 p12i43-p12i49)),fmt=comma8.) %dovar(Over65,65 Years and Over,a%str(sum(of ge65_74 age75_84 Over85)),fmt=comma8.) %let display=0; %dovar(over18,18 Years and Over,%str(sum(of p12i7-p12i25 p12i31-p12i49)),fmt=comma8.) %dovar(over18_male,Males 18 Years and Over,%str(sum(of p12i7-p12i25)),fmt=comma8.) %dovar(over18_female,Females 18 Years and Over,%str(sum(of p12i31-p12i49)),fmt=comma8.) %dovar(over21,21 Years and Over,%str(sum(of p12i9-p12i25 p12i33-p12i49)),fmt=comma8.) %dovar(age15_19,15 to 19 Years,%str(sum(of p12i6 p12i7 p12i30 p12i31)),fmt=comma8.) %dovar(age18_24,18 to 24 Years,%str(sum(of p12i7-p12i10 p12i31-p12i34)),fmt=comma8.) %dovar(over65_male,Males 65 Years and Over,%str(sum(of p12i20-p12i25)),fmt=comma8.) %dovar(over65_female,Females 65 Years and Over,%str(sum(of p12i44-p12i49)),fmt=comma8.) /********************************comment out for testing **********************************; %let table=Race; %let universe=Population; %let RefTables=P3; %let lvl=0; %let pctof=TotPop; %let display=1; %dovar(one_race_total,One Race,p3i2,fmt=comma8.) %let lvl=2; %dovar(white1,White,p3i3,fmt=comma8.) %dovar(black1,Black or African American,p3i4,fmt=comma8.) %dovar(indian,American Indian and Alaska Native,p3i5,fmt=comma8.) %dovar(asian1,Asian,p3i6,fmt=comma8.) %dovar(hawnpi1,Native Hawaiian and Other Pacific Islander,p3i7,fmt=comma8.) %dovar(other1,Some Other Race,%str(sum(of p3i2 -(sum(of p3i3-p3i7)))),fmt=comma8.) %dovar(multrace,%str(Multi Race - Persons reporting more than one race),p3i9,fmt=comma8.) %let display=0; * Race alone or in combination with one or more other races *; %let RefTables=P9; %dovar(white2,White and Some Other Race,p9i2,fmt=comma8.) %dovar(black2,Black or African American and Some Other Race,p9i3,fmt=comma8.) %dovar(indian2,American Indian and Alaska Native and Some Other Race,p9i4,fmt=comma8.) %dovar(asian2,Asian and Some Other Race,p9i5,fmt=comma8.) %dovar(hawnpi2,Native Hawaiian and Other Pacific Islander and Some Other Race,p9i6,fmt=comma8.) %dovar(other2,Some Other Race or Combination,p9i7,fmt=comma8.) %let display=0; %let RefTables=PCT8; %dovar(hawaiian,Native Hawaiian,pct8i3,fmt=comma8.) %dovar(guam_or_cham,Guamanian or Chamorro,pct8i8,fmt=comma8.) %dovar(samoan,Samoan,pct8i4,fmt=comma8.) %let RefTables=P3 P8; %dovar(other_pac_islander,Other Pacific Islander,%str(sum(of p3i7 -(sum(of pct8i3 pct8i8 pct8i4)))),fmt=comma8.) %let RefTables=PCT5; %dovar(asian_indian,Asian Indian,pct5i2,fmt=comma8.) %dovar(chinese,Chinese,%str(sum(of pct5i5 pct5i15)),fmt=comma8.) %dovar(filipino,Filipino,pct5i6,fmt=comma8.) %dovar(japanese,Japanese,pct5i9,fmt=comma8.) %dovar(korean,Korean,pct5i10,fmt=comma8.) %dovar(vietnamese,Vietnamese,pct5i17,fmt=comma8.) %dovar(other_asian,Other Asian,%str(sum(of p3i6 -(sum(of pct5i2 pct5i5 pct5i15 pct5i6 pct5i9 pct5i10 pct5i17)))),fmt=comma8.) %let table=Hispanic or Latino and Race; %let universe=Population who are Hispanic or Latino; %let RefTables=P11; %let lvl=0; %let pctof=TotPop; %let display=1; %dovar(HispPop,%str(Hispanic or Latino (of any race)),p11i1,fmt=comma8.) %let lvl=2; %dovar(mexican,Mexican,pct11i4,fmt=comma8.) %dovar(puerto_rican,Puerto Rican,pct11i5,fmt=comma8.) %dovar(cuban,Cuban,pct11i6,fmt=comma8.) %dovar(other_hispOther Hispanic or Latino,%str(sum(of pct11i3 -(sum(of pct11i4 pct11i5 pct11i6)))),fmt=comma8.) %let lvl=0; %dovar(non_hispanic,Not Hispanic or Latino,pct11i2,fmt=comma8.) %let lvl=2; %let RefTables=P4; %dovar(white_non_hispanic,White Alone,p4i5,fmt=comma8.) %let table=Relationship of Persons in Households; %let universe=Households; %let RefTables=P27; %let lvl=0; %let pctof=TotPop; %let display=1; %dovar(hhpop,Total Persons in Households,p27i2,fmt=comma8.) %let RefTables=P15; %let lvl=2; %dovar(householder,Householder,p15i1,fmt=comma8.) %let RefTables=P27; %dovar(spouse,Spouse,p27i7,fmt=comma8.) %dovar(child,Child,p27i8,fmt=comma8.) %let RefTables=P28; %let lvl=3; %dovar(ownchild_under18,Own Child Under 18 Years,p28i6+p28i7,fmt=comma8.) %let RefTables=P27; %let lvl=2; %dovar(other_relatives,Other Relatives,%str(sum(of p27i11- p27i14)),fmt=comma8.) %let RefTables=P28; %let lvl=3; %dovar(other_under18,Under 18 Years,p28i10,fmt=comma8.) %let RefTables=P27; %let lvl=2; %dovar(nonrelatives,Non Relatives,p27i15+p27i23,fmt=comma8.) %let RefTables=PCT15; %let lvl=3; %dovar(unmarried_partner,Unmarried Partner,pct15i5+pct15i11,fmt=comma8.) %let table=Households by Type; %let universe=Households; %let RefTables=P15; %let lvl=0; %let pctof=; %let display=1; %dovar(tothhs,Total Households,p15i1,fmt=comma8.) %let PctOf=tothhs; %let RefTables=P18; %let lvl=2; %dovar(families,%str(Family Households (Families)),p18i6,fmt=comma8.) %let lvl=3; %dovar(fam_childunder18,With Own Children Under 18 Years,p18i8+p18i12+p18i15,fmt=comma8.) %let lvl=2; %dovar(married_couple,Married Couple Family,p18i7,fmt=comma8.) %let lvl=3; %dovar(marrcouple_childunder18,With Own Children Under 18 Years,p18i8,fmt=comma8.) %let lvl=2; %dovar(femalehouseholder,%str(Female householder, No Husband Present),p18i14,fmt=comma8.) %let lvl=3; %dovar(fem_childunder18,With Own Children Under 18 Years,p18i15,fmt=comma8.) %lvl=2; %dovar(nonfamily_households,Non Family Households,%str(sum(of p18i17 p18i2)),fmt=comma8.) %lvl=3; %dovar(livingalone,Householder Living Alone,p18i2,fmt=comma8.) %let RefTables=P20; %dovar(householder_over65,Householder 65 Years and Over,p20i30,fmt=comma8.) %let RefTables=P19; %dovar(house_indvunder18,Households With Individuals Under 18 Years,p19i2,fmt=comma8.) %let display=0; %let RefTables=P23; %dovar(house_indvover65,Households With Individuals 65 Years and Over,p23i2,fmt=comma8.) %dovar(avg_housesize,Average Household Size,%str(if p15i1 gt 0 then avg_housesize = (p27i2/p15i1)),fmt=4.2,wtvar=tothhs) %dovar(avg_famsize,Average Family Size,p33i1, fmt=4.2,wtvar=family) %let table=Group Quarters; %let universe=Population Living in Group Quarters; %let RefTables=P37; %let lvl=0; %let pctof=; %let display=1; %dovar(gqpop,Population in Group Quarters,p37i1,fmt=comma8.) %let lvl=2; %dovar(Institution_pop,Institutionalized Population,p37i2,fmt=comma8.) %let lvl=3; %dovar(correction_institutions,Correctional Institutions,p37i3,fmt=comma8.) %dovar(Nursing_homes,Nursing Homes,p37i4,fmt=comma8.) %dovar(Other_institutions,Other Institutionalized Institutions,p37i5,fmt=comma8.) %let lvl=2; %dovar(NonInstitution_pop,NonInstitutionalized Population,p37i6,fmt=comma8.) %let lvl=3; %dovar(College_dormitories,%str(College Dormitories (Includes college quarters off campus)),p37i7,fmt=comma8.) %dovar(Military_quarters,Military Quarters,p37i8,fmt=comma8.) %dovar(other_noninstitution_gp,Other NonInstitutional Group Quarters,p37i9,fmt=comma8.) %let table=Housing Occupancy and Tenure; %let universe=Housing Units; %let RefTables=H1; %let lvl=0; %let pctof=; %let display=1; %dovar(tot_units,Total Housing Units,h1i1,fmt=comma8.) %let PctOf=tot_units; %let RefTables=H3; %let lvl=2; %dovar(occupied_units,Occupied Housing Units,h3i2,fmt=comma8.) %let lvl=3; %let RefTables=H4; %dovar(owner_occupied,Owner Occupied,h4i2,fmt=comma8.) %dovar(renter_occupied,Renter Occupied,h4i3,fmt=comma8.) %let lvl=2; %let RefTables=H5; %dovar(vacant_units,Vacant Housing Units,h5i1,fmt=comma8.) %let lvl=3; %dovar(vacantforrent,Vacant for Rent,h5i2,fmt=comma8.) %dovar(vacantforsale,Vacant for Sale,h5i3,fmt=comma8.) %dovar(seas_rec_use,%str(For Seasonal,Recreation or Occasional Use),h5i5,fmt=comma8.) %let display=0; %let PctOf=tot_units; %dovar(OwnerTot,Total Owner Units incl Units for Sale,owner_occupied + vacantforsale,fmt=comma8.) %dovar(RenterTot,Total Rental Units inc Units Vacant for Rent,renter_occupied + vacantforrent,fmt=comma8.) %let display=1; %let lvl=2; %let PctOf=; %dovar(ownervacrate,Homeowner Vacancy Rate,%str(if (h5i3+h4i2) gt 0 then ownervacrate=(h5i3/(h5i3+h4i2))*100)),fmt=5.2,wtvar=OwnerTot) %dovar(rentalvacrate,Rental Vacancy Rate,%str(if (h5i2+h4i3) gt 0 then rentalvacrate=(h5i2/(h5i2+h4i3))*100)),fmt=5.2,wtvar=RenterTot) %let RefTables=H12; %dovar(avgsize_owner,%str(Average Household Size of Owner-occupied Units),h12i2,fmt=5.2,wtvar=owner_occupied) %dovar(avgsize_renter,%str(Average Households Size of Renter-Occupied Units),h12i3,fmt=5.2,wtvar=renter_occupied) *************************end comment***************************/;