x cd /pub/data/popests/Tools; %let pgm=cnvt_moest90_00; filename pgm "&pgm..sas"; *----Setup to read Census Bureau/FSCPE estimates with components of change for estimate year 20YY. Data is for the nation, states and counties. Initial coding, by Evelyn J. Cleveland, Missouri Census Data Center (June 2003). ----; filename csvin "/pub/data/popests/CO-EST2001-12-29.csv"; *<--as FTPed from Census web site--; libname user '/SAS_temp/user'; libname popests "/pub/data/popests/"; *==============Begin Data step by reading CSV file ==============*; data vars1; attrib sumlev length=$5 label='Summary Level' format=$5.; attrib areaname length=$40 label='Area Name' format=$20.; attrib state length=$2 label='State Postal Abbreviation' format=$2.; attrib fipco length=$5 label='FIPS County' format=$5.; attrib Pop90Base length=5 label='April 1 1990 Population Est. Base' format=comma9.; attrib Popjl90 length=5 label='July 1 1990 Population Ests' format=comma9.; attrib Popjl91 length=5 label='July 1 1991 Population Ests' format=comma9.; attrib Popjl92 length=5 label='July 1 1992 Population Ests' format=comma9.; attrib Popjl93 length=5 label='July 1 1993 Population Ests' format=comma9.; attrib Popjl94 length=5 label='July 1 1994 Population Ests' format=comma9.; attrib Popjl95 length=5 label='July 1 1995 Population Ests' format=comma9.; attrib Popjl96 length=5 label='July 1 1996 Population Ests' format=comma9.; attrib Popjl97 length=5 label='July 1 1997 Population Ests' format=comma9.; attrib Popjl98 length=5 label='July 1 1998 Population Ests' format=comma9.; attrib Popjl99 length=5 label='July 1 1999 Population Ests' format=comma9.; attrib Pop00c length=5 label='April 1 2000 Census' format=comma9.; attrib PopChg90B_91 length=5 label='Change in Pop. 1990 Base - 1991' format=comma9.; attrib PctChg90B_91 length=5 label='Pct. Chg. in Pop. 1990 Base - 1991' format=5.1; attrib PopChg90_91 length=5 label='Change in Pop. Ests. 1990 - 1991' format=comma9.; attrib PctChg90_91 length=5 label='Pct. Chg. in Pop. Ests. 1990 - 1991' format=5.1; attrib PopChg91_92 length=5 label='Change in Pop. Ests. 1991 - 1992' format=comma9.; attrib PctChg91_92 length=5 label='Pct. Chg in Pop. Ests. 1991 - 1992' format=5.1; attrib PopChg92_93 length=5 label='Change in Pop. Ests. 1992 - 1993' format=comma9.; attrib PctChg92_93 length=5 label='Pct. Chg. in Pop. Ests. 1992 - 1993' format=5.1; attrib PopChg93_94 length=5 label='Change in Pop. Ests. 1993 - 1994' format=comma9.; attrib PctChg93_94 length=5 label='Pct. Chg. in Pop. Ests. 1993 - 1994' format=5.1; attrib PopChg94_95 length=5 label='Change in Pop. Ests. 1994 - 1995' format=comma9.; attrib PctChg94_95 length=5 label='Pct. Chg. in Pop. Ests. 1994 - 1995' format=5.1; attrib PopChg95_96 length=5 label='Change in Pop. Ests. 1995 - 1996' format=comma9.; attrib PctChg95_96 length=5 label='Pct. Chg. in Pop. Ests. 1995 - 1996' format=5.1; attrib PopChg96_97 length=5 label='Change in Pop. Ests. 1996 - 1997' format=comma9.; attrib PctChg96_97 length=5 label='Pct. Chg. in Pop. Ests. 1996 - 1997' format=5.1; attrib PopChg97_98 length=5 label='Change in Pop. Ests. 1997 - 1998' format=comma9.; attrib PctChg97_98 length=5 label='Pct. Chg. in Pop. Ests. 1997 - 1998' format=5.1; attrib PopChg98_99 length=5 label='Change in Pop. Ests. 1998 - 1999' format=comma9.; attrib PctChg98_99 length=5 label='Pct. Chg. in Pop. Ests. 1998 - 1999' format=5.1; attrib PopChg99_00 length=5 label='Change in Pop. Ests. 1999 - 2000 Census' format=comma9.; attrib PctChg99_00 length=5 label='Pct. Chg. in Pop. Ests. 1999 - 2000 Census' format=5.1; attrib PopChg90B_00 length=5 label='Change in Pop. 1990 Base - 2000 Census' format=comma9.; attrib PctChg90B_00 length=5 label='Pct. Chg. in Pop. 1990 Base - 2000 Census' format=5.1; length state1 $20; infile csvin dsd dlm="," lrecl=2800 firstobs=4 missover; input areaname state1 fipco Pop90Base Popjl90 Popjl91 Popjl92 Popjl93 Popjl94 Popjl95 Popjl96 Popjl97 Popjl98 Popjl99 Pop00c; state=substr(fipco,1,2); if areaname=' ' then areaname='Missouri'; if fipco='29' then sumlev='040'; else sumlev='050'; PopChg90B_91 = Popjl91 - Pop90Base; PctChg90B_91 = PopChg90B_91 / Pop90Base * 100; PopChg90_91 = Popjl91 - Popjl90; PctChg90_91 = PopChg90_91 / Popjl90 * 100; PopChg91_92 = Popjl92 - Popjl91; PctChg91_92 = PopChg91_92 / Popjl91 * 100; PopChg92_93 = Popjl93 - Popjl92; PctChg92_93 = PopChg92_93 / Popjl92 * 100; PopChg93_94 = Popjl94 - Popjl93; PctChg93_94 = PopChg93_94 / Popjl93 * 100; PopChg94_95 = Popjl95 - Popjl94; PctChg94_95 = PopChg94_95 / Popjl94 * 100; PopChg95_96 = Popjl96 - Popjl95; PctChg95_96 = PopChg95_96 / Popjl95 * 100; PopChg96_97 = Popjl97 - Popjl96; PctChg96_97 = PopChg96_97 / Popjl96 * 100; PopChg97_98 = Popjl98 - Popjl97; PctChg97_98 = PopChg97_98 / Popjl97 * 100; PopChg98_99 = Popjl99 - Popjl98; PctChg98_99 = PopChg98_99 / Popjl98 * 100; PopChg99_00 = Pop00c - Popjl99; PctChg99_00 = PopChg99_00 / Popjl99 * 100; PopChg90B_00 = Pop00c - Pop90Base; PctChg90B_00 = PopChg90B_00 / Pop90Base * 100; drop state1; proc sort out=popests.moest90_00; by sumlev fipco; run; proc contents data=popests.moest90_00; title 'Missouri Population Estimates 1990 to 2000'; run;