x cd /pub/data/georef; %let pgm=moplace_roster; filename pgm "&pgm..sas"; *--for Minxia Dong, Mo State Library for the Mo SOS Office. Create file with official place list for Mo showing counties and main ZIP codes for each. jgb, 5-06 ---*; /* I called Adam from Elections Division, the young man who called me for this information and who is assigned to work on this project of updating the MCVR (Missouri Centralized Voter Registration) database. You know what? He does not care about the accuracy of the match of the zip codes with the places and he said that he would use the information from Missouri Roster to update that MCVR database. I told him that I can let him contact you, John Blodgett, a census expert in Missouri directly. His answer is, "No, I just use the information from Missouri Roster even though I noticed there are errors in the zip codes with the places compared with the information John Blodgett sent." I asked him "Are you sure you do not want to contact John directly?" He said, "Yes. I am fine with the information from Roster." ===============e-mail from Minxia D. 5-4-06. Case closed. For now. ======================================= */ libname popests '/pub/data/popests' access=readonly; libname georef '/pub/data/georef'; filename zipsin '/pub/data/georef/mainzipcodes_moplaces.csv'; data zipplaces; infile zipsin firstobs=2 truncover; length ZIP $5 Areaname $40; input zip $5. +1 Areaname $40.; run; proc sort; by areaname; run; data moplcounty; set popests.mosc04; where sumlev='157' and placefp ne '99990'; ; keep placefp county areaname popest popestbase; *--remove '(pt.)' from end of name--; if substr(areaname,length(areaname),1)=')' then areaname=substr(areaname,1,length(areaname)-6); run; proc sort; by areaname; run; data georef.moplace_roster; merge moplcounty(in=inests) zipplaces(in=inzips); by areaname; if not inzips then put /_all_; run; proc print data=georef.moplace_roster; format county $mocnty10.; run;