x cd /pub/data/stf803/Tools; %let pgm=cnvtuszips; filename pgm "&pgm..sas"; *--Using a refreshed version of the raw data file, we regenerate a single uszips dataset from the original "B" collection, newly downloaded from ICPSR, Jan, 2005. Because we do not quite trust our old file with 20+ obs with 00000 as ZIP code. This file goes into the old "v8" collection and will subsequently be processed as part of the migrate+plus setup where we generally enhance the data. jgb, 1-6-05. --*; title "Convert 1980 STF3B A Files for All States"; options compress=yes; filename in pipe "unzip -p /pub/data/stf803/rawdata/icpsr8071b.zip -x cb8318.all.pdf README.8318"; *-input file was downloaded from icpsr Jan 2005---; libname stf803 '/pub/data/stf803/v8'; *<---we put it in this directory so we can postprocess it with the migrate_plus setup to enhance it.---; options mprint; *---The convert macro is automagically included from /pub/sasmacro/stf803c.sas ---; %stf803c(in=in,sasout=stf803.uszips) ; title2 "stf803.&stab"; proc freq data=stf803.uszips(keep=sumrylvl state zip); tables sumrylvl state zip; format zip $3. ; run; proc print data=stf803.uszips(keep=_char_ t1i1 obs=40); run;