%*---This module creates the stf901x2 to be compatible with sf1200 data and 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_dovars901x2.sas in the stf901x2/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.) %let display=0; %let RefTables=P5; %dovar(male,Males,p1i1-p5i2,fmt=comma8.) %dovar(female,Females,p5i2,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.) /********************************comment out for testing **********************************; %let table=Age; %let universe=Population; %let RefTables=P12; %let lvl=2; %let pctof=TotPop; %dovar(age0_4,Under 5 years,%str(sum(of p11i1-p11i3)),fmt=comma8.) %dovar(age5_9,age 5 to 9 years,%str(sum(of p11i4-p11i6)),fmt=comma8.) %dovar(age10_14,10 to 14 years,%str(sum(of p11i7 p11i8 p11i9)),fmt=comma8.) %dovar(age15_17,15 to 17 years,%str(sum(of p11i10-p11i12)),fmt=comma8.) %dovar(age18_19,18 to 19 years,%str(sum(of p11i13-p11i14)),fmt=comma8.) %dovar(age20_24,20 to 24 years,%str(sum(of p11i15-p11i17)),fmt=comma8.) %dovar(age25_34,25 to 34 years,%str(sum(of p11i18 p11i19)),fmt=comma8.) %dovar(age35_44,35 to 44 years,%str(sum(of p11i20 p11i21)),fmt=comma8.) %dovar(age45_54,45 to 54 years,%str(sum(of p11i22 p11i23)),fmt=comma8.) %dovar(age55_59,54 to 59 years,p11i24,fmt=comma8.) %dovar(age60_64,age60 to 64 years,%str(sum(of p11i25 p11i26)),fmt=comma8.) %dovar(age65_74,65 to 74 years,%str(sum(of p11i27 p11i28)),fmt=comma8.) %dovar(age75_84,75 to 84 years,%str(sum(of p11i29 p11i30)),fmt=comma8.) %dovar(over85,85 Years and Over,p11i31,fmt=comma8.) %let RefTables=; %let pctof=; %let lvl=1; %let pctof=; *--following arrays, retain are for median macro (median_age var)--; array intvals p11i1-p11i31; array intsize is1-is31; retain is1 1 is2 2 is3 2 is4 1 is5 1 is6 3 is7 2 is8 2 is9 1 is10 1 is11 1 is12 1 is13 1 is14 1 is15 1 is16 1 is17 3 is18 5 is19 5 is20 5 is21 5 is22 5 is23 5 is24 5 is25 2 is26 3 is27 5 is28 5 is29 5 is30 5 is31 10; %median(intsize=intsize,intvals=intvals,mdn=median_age) %dovar(median_age,Median Age,median_age,fmt=5.1,wtvar=totpop, comment=%str(Median age was computed for 1990 using a macro on age table p11)) %let RefTables=; %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,%str(sum(of 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(Over65, 65 and Over,%str(sum(of age65_74 age75_84 Over85)),fmt=comma8.) %let display=0; %let RefTables=P11; %dovar(over18,Population 18 and Over,%str(sum(of p11i13-p11i31)),fmt=comma8.) %let lvl=3; %let RefTables=P12; %dovar(over18_male,Males 18 and Over,%str(sum(of p12i13-p12i31 p12i75-p12i93 p12i137-p12i155 p12i199-p12i217 p12i261-p12i279)), fmt=comma8.) %dovar(over18_female,Females 18 and Over,%str(sum(of p12i44-p12i62 p12i106-p12i124 p12i168-p12i186 p12i230-p12i248 p12i292-p12i310)), fmt=comma8.) %let lvl=2; %let RefTables=P11; %dovar(over21,Population 21 and Over,%str(sum(of p11i16 - p11i31),fmt=comma8.) %dovar(age15_19,15 to 19,%str(sum(of p11i10-p11i14)),fmt=comma8.) %dovar(age18_24,18 to 24 Years,%str(sum(of p11i13-p11i17)),fmt=comma8.) %dovar(over62,62 Years and Over,%str(sum(of p11i26 - p11i31)),fmt=comma8.) %let RefTables=P13; %dovar(over65_male,Males 65 Years and Over,%str(sum(of p13i27 p13i89-p13i93 p13i151-p13i155 p13i213-p13i217 p13i275-p13i279)), fmt=comma8.) %dovar(over65_female,Females 65 Years and Over,%str(sum(of p13i58-p13i62 p13i120-p13i124 p13i182-p13i186 p13i244-p13i248 p13i306-p13i310)), fmt=comma8.) %let table=Race; %let universe=Population; %let RefTables=P6; %let lvl=0; %let pctof=TotPop; %let display=1; %let lvl=2; %dovar(white1,White,p6i1,fmt=comma8.) %dovar(black1,Black or African American,p6i2,fmt=comma8.) %dovar(indian,American Indian and Alaska Native,p6i3,fmt=comma8.) %let RefTables=P7; %dovar(asian1,Asian,%str(sum(of p7i6-p7i16 p7i17-p7i24)),fmt=comma8.) %dovar(hawnpi1,Native Hawaiian and Other Pacific Islander,%str(sum(of p7i17-p7i24)),fmt=comma8.) %dovar(other1,Some Other Race,other1=p7i25,fmt=comma8.) %let display=0; %let RefTables=P7; %dovar(hawaiian,Native Hawaiian,p7i17,fmt=comma8.) %dovar(guam_or_cham,Guamanian or Chamorro,p7i21,fmt=comma8.) %dovar(samoan,Samoan,p7i18,fmt=comma8.) %let RefTables=P3 P8; %dovar(other_pac_islander,Other Pacific Islander,%str(sum(of p7i19 p7i20 p7i22 p7i23 p7i24)),fmt=comma8.) %let RefTables=P7; %dovar(asian_indian,Asian Indian,p7i9,fmt=comma8.) %dovar(chinese,Chinese,p7i6,fmt=comma8.) %dovar(filipino,Filipino,p7i7,fmt=comma8.) %dovar(japanese,Japanese,p7i8,fmt=comma8.) %dovar(korean,Korean,p7i10,fmt=comma8.) %dovar(vietnamese,Vietnamese,p7i11,fmt=comma8.) %dovar(other_asian,Other Asian,%str(sum(of p7i12 - p7i16)),fmt=comma8.) %let table=Hispanic or Latino and Race; %let universe=Population who are Hispanic or Latino; %let RefTables=P8; %let lvl=0; %let pctof=TotPop; %let display=1; %dovar(HispPop,%str(Hispanic or Latino (of any race)),p8i1,fmt=comma8.) %let lvl=2; %let RefTables=P9; %dovar(mexican,Mexican,p9i2,fmt=comma8.) %dovar(puerto_rican,Puerto Rican,p9i3,fmt=comma8.) %dovar(cuban,Cuban,p9i4,fmt=comma8.) %dovar(other_hispOther Hispanic or Latino,p9i5,fmt=comma8.) %let lvl=0; %let RefTables=; %dovar(non_hispanic,Not Hispanic or Latino,(p1i1 - p8i1),fmt=comma8.) %let lvl=2; %let RefTables=p10; %dovar(white_non_hispanic,White Alone,p10i1,fmt=comma8.) %let table=Relationship of Persons in Households; %let universe=Households; %let RefTables=P15; %let lvl=0; %let pctof=TotPop; %let display=1; %dovar(hhpop,Total Persons in Households,%str(sum(of p15i1-p15i10),fmt=comma8.) %let RefTables=P15; %let lvl=2; %dovar(householder,Householder,%str(sum(of p15i1 p15i8 p15i9)),fmt=comma8.) %dovar(spouse,Spouse,p15i2,fmt=comma8.) %dovar(child,Child,%str(sum(of p15i3-p15i4)),fmt=comma8.) %let lvl=3; %dovar(ownchild_under18,Own Child Under 18 Years,%str(sum(of p21i2-p21i4)),fmt=comma8.) %let lvl=2; %dovar(other_relatives,Other Relatives,%str(sum(of p15i6 p15i5)),fmt=comma8.) %let RefTables=p21; %let lvl=3; %dovar(other_under18,Under 18 Years,p21i5,fmt=comma8.) %let RefTables=P15; %let lvl=2; %dovar(nonrelatives,Non Relatives,%str(sum(of p15i7 p15i10)),fmt=comma8.) %let table=Households by Type; %let universe=Households; %let RefTables=P3; %let lvl=0; %let pctof=; %let display=1; %dovar(tothhs,Total Households,p3i1,fmt=comma8.) %let PctOf=tothhs; %let RefTables=P2; %let lvl=2; %dovar(families,%str(Family Households (Families)),p2i1,fmt=comma8.) %let lvl=3; %let RefTables=P18; %dovar(fam_childunder18,With Own Children Under 18 Years,%str(sum(of p18i1 p18i2 p18i3)),fmt=comma8.) %let lvl=2; %let RefTables=P16; %dovar(married_couple,Married Couple Family,%str(sum(of p16i3 p16i4)),fmt=comma8.) %let lvl=3; %let RefTables=P18; %dovar(marrcouple_childunder18,With Own Children Under 18 Years,p18i1,fmt=comma8.) %let lvl=2; %let RefTables=P16; %dovar(femalehouseholder,%str(Female householder, No Husband Present),%str(sum(of p16i7 p16i8)),fmt=comma8.) %let lvl=3; %let RefTables=P18; %dovar(fem_childunder18,With Own Children Under 18 Years,p18i3,fmt=comma8.) %lvl=2; %let RefTables=P15; %dovar(nonfamily_households,Non Family Households,%str(sum(of p15i8-p15i9)),fmt=comma8.) %lvl=3; %dovar(livingalone,Householder Living Alone,p15i8,fmt=comma8.) %let RefTables=P23; %dovar(householder_over65,Householder 65 Years and Over,%str(sum(of p23i5 p23i7)),fmt=comma8.) %let RefTables=P18; %dovar(house_indvunder18,Households With Individuals Under 18 Years,%str(sum(of p18i1-p18i5)),fmt=comma8.) %let display=0; %let RefTables=P25; %dovar(house_indvover65,Households With Individuals 65 Years and Over,%str(sum(of p25i1-p25i3)),fmt=comma8.) %let RefTables=; %dovar(avg_housesize,Average Household Size,%str(sum(of p1i1 - %str(sum(of p15i11-p15i12)/p3i1))),fmt=4.2,wtvar=tothhs) %let RefTables=P17; %dovar(avg_famsize,Average Family Size,p17ai1, fmt=4.2,wtvar=family) %let table=Group Quarters; %let universe=Population Living in Group Quarters; %let RefTables=P15; %let lvl=0; %let pctof=; %let display=1; %dovar(gqpop,Population in Group Quarters,%str(sum(of p15i11 p15i12)),fmt=comma8.) %let lvl=2; %dovar(Institution_pop,Institutionalized Population,p15i11,fmt=comma8.) %let lvl=3; %let RefTables=p28; %dovar(correction_institutions,Correctional Institutions,p28i1,fmt=comma8.) %dovar(Nursing_homes,Nursing Homes,p28i2,fmt=comma8.) * %dovar(Other_institutions,Other Institutionalized Institutions,,fmt=comma8.) %let lvl=2; %dovar(NonInstitution_pop,NonInstitutionalized Population,p15i12,fmt=comma8.) %let lvl=3; %let RefTables=P28; %dovar(College_dormitories,%str(College Dormitories (Includes college quarters off campus)),p28i6,fmt=comma8.) %dovar(Military_quarters,Military Quarters,p28i7,fmt=comma8.) %dovar(other_noninstitution_gp,Other NonInstitutional Group Quarters,p28i10,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=H2; %let lvl=2; %dovar(occupied_units,Occupied Housing Units,h2i1,fmt=comma8.) %let lvl=3; %let RefTables=H3; %dovar(owner_occupied,Owner Occupied,h3i1,fmt=comma8.) %dovar(renter_occupied,Renter Occupied,h3i2,fmt=comma8.) %let lvl=2; %let RefTables=H5; %dovar(vacant_units,Vacant Housing Units,%str(sum(of h5i1-h5i6)),fmt=comma8.) %let lvl=3; %dovar(vacantforrent,Vacant for Rent,h5i1,fmt=comma8.) %dovar(vacantforsale,Vacant for Sale,h5i2,fmt=comma8.) %dovar(seas_rec_use,%str(For Seasonal, Recreation or Occasional Use),h5i4,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 (h3i1+h5i2) gt 0 then ownervacrate=(h5i2/(h5i2+h3i1))*100),fmt=5.2,wtvar=OwnerTot) %dovar(rentalvacrate,Rental Vacancy Rate,%str(if (h3i2+h5i1) gt 0 then rentalvacrate=(h5i1/(h5i1+h3i2))*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***************************/;