x cd /pub/data/corrlst/Tools; %let pgm=netr2ma90; filename pgm "&pgm..sas"; *---Create a New England census tract to metro area (msascmsa, pmsa) - vinatge 1990 census - correlation list. We usually (outside New England) just need the county to know the mas but not so there. Input data was created using Geocorr, the 1998 version 3. Coded by John Blodgett, OSEDA, Aug. 2002. ---*; title "Create corrlst.&pgm: New England Census Tract to Metro Area Corr List"; libname user "/SAS_temp/user"; *<---special work-like directory--; libname corrlst '/pub/data/corrlst'; data corrlst.&pgm(label="New England census tract to metro area codes, 1990"); infile "../&pgm..csv" dsd missover firstobs=2; length state $2 county $5 tract $7 msacmsa pmsa $4 totpop90 5; input county--totpop90; state=substr(county,1,2); run; proc print data=corrlst.&pgm (obs=50); title2 "first 50 Obs on corrlst.&pgm "; by state county; format county $county.; run;