x cd /pub/data/corrlst/Tools; %let pgm=puma2k_2010; filename pgm "&pgm..sas"; *---We generated the 2000 PUMA to 2010 PUMA CSV corrlst file using Geocorr12 on 1-19-15. Here we read that CSV files and create a corresponding SAS data set. We drop the puma2k name because they only existed for Missouri. jgb, 1-19-15. ---*; filename csvin '/pub/data/corrlst/puma2k_puma2010.csv'; libname corrlst '/pub/data/corrlst'; data corrlst.&pgm(label="2000 to 2010 PUMA Equivalency Using 2010 Pop Weights" index=(state)); infile csvin dsd firstobs=3; length State $2 puma2k $5 puma12 $5 Stab $2 PUMA12name $90 _puma2kname $90 pop10 5 afact afact2 8; input State--afact2; format afact: 5.3 ; drop _: ; label puma12="2010 PUMA (aka 2012)" puma2k="2000 PUMA" pop10="2010 Census Pop" afact2="Portion of PUMA12 in PUMA2k" afact="Portion of PUMA2k in PUMA12" ; run; ods html file="&pgm..html" style=meadow; ods noproctitle; title "corrlst.&pgm"; proc print data=corrlst.&pgm (where=(state="29")); by puma2k; id puma2k; title2 "Missouri Subset"; run; proc freq data=corrlst.&pgm; table state*stab /list nopercent nocum; title2 "States in the Data Set"; run ; ods html close;