x cd /pub/data/pl942000/Tools; %let pgm=uspoptrends; filename pgm "&pgm..sas"; *--Generate a file showing change in pop for various U.S. geographies. Merge pl942000 county pop counts with intercensal pop estiamtes file (incl. corrected 90 pop) to create pl942000.uscntychange dataset. John Blodgett, OSEDA, U. of Missouri Outreach & Extension. --*; libname pl942000 '/pub/data/pl942000'; libname popests server=oseda.demoserv sapw=giveme; /*<=========================Comment out===================================== data pl942000.uscntychange(label='US county pop change, 1990-2000'); merge popests.uscom99(in=inests keep=county pop90c popjl90-popjl99 areaname slvl where=(slvl='050')) pl942000.uscntys(in=in2000 keep=sumlev state stab county totpop areaname); by county; if not (inests and in2000) then do; put / '***Data missing for ' county= areaname pop90c= totpop=; end; else do; popchange=totpop - pop90c; if pop90c then pctchange=100*popchange/pop90c; end; format county $5. ; label popchange='Change in Total Pop, 1990-2000' pctchange='% Change'; drop slvl; run; ===========================End commented out================================ */ *---Create a CSV file for Lance to generate a pop change map for Daryl, 4-26-01--; filename dlmout '/pub/data/pl942000/uscntychange.csv'; filename dbfout '/pub/data/pl942000/uscntychange.dbf'; data togo; set pl942000.uscntychange; where state not in ('02','15'); *--omit Alaska and Hawaii--; keep county pctchange popchange; format pctchange 7.1; run; %cnvtdlm(setin=togo,names=1,round=.1) run; proc dbf data=togo db4=dbfout; run;