x cd /pub/data/pl942000/Tools; %let pgm=fixgeos; filename pgm "&pgm..sas"; *--You can delete this line-; *----Fix problems with pl942000 xxgeos data sets. We are creating this setup after finding minor glitches in the assignment of the goeocode variable during our initial conversions. We can fix the code without going back and having to read the raw data. 4.21.01 *****Never Used Yet************************************************** Coded by John Blodgett, OSEDA, U. of Missouri, Columbia, MO. Under contract with the Missouri Census Data Center. -----*; libname pl942000 '/pub/data/pl942000'; *--This is the directory where the output data sets are saved--; libname user '/SAS_temp/user'; /*<=========================Comment out===================================== ===========================End commented out================================ */ data degeos; set pl942000.degeos; run; proc datasets library=user nolist; change degeos=xdegeos; quit; *--test our code on the degeos work data set--; data degeos; set xdegeos; if sumlev ='610' then geocode=%concatd(state,sldu); else if sumlev='620' then geocode=%concatd(state,sldl); geocode=compress(geocode,' '); run; proc datasets library=user nolist; * delete xdegeos; modify degeos ; index create geo_id/unique; index create sumlev; quit;