x cd /pub/data/stf803/Tools; %let pgm=cnvtmo; filename pgm "&pgm..sas"; *--Using a refreshed version of the raw data file, we regenerate the basic missouri A file. This file goes into the old "v8" collection and will subsequently be processed as part of the migrate+plus setup where we add info from marf2 and generally enhance the data. jgb, 1-4-05. --*; %let state=29; %let stab=mo; %let statenm=Missouri; title "Convert 1980 STF3A File for &statenm"; /* =======================Begin comment================ libname stf803 '/pub/data/stf803/v8'; *<---we put it in this directory so we can postprocess it with filename in pipe "unzip -p /pub/data/stf803/rawdata/icpsr8071&stab..zip da8071.&stab&state.rev"; *-input file was downloaded from icpsr Jan 2005---; options mprint; *---The convert macro is automagically included from /pub/sasmacro/stf803c.sas ---; %stf803c(in=in,sasout=stf803.&stab) proc freq data=stf803.&stab(keep=sumrylvl county); tables sumrylvl county; run; proc print data=stf803.&stab(keep=_char_ t1i1 obs=40); title2 "stf803.&stab"; run; ======================End comment================== */ *--jgb 12-6-05--; libname stf803 '/pub/data/stf803'; *<---post-process (after enahncing via migrate_plus setup) to add labels--; proc datasets library=stf803 nolist; modify moi; %include 'labs803.sas'; modify moh; %include 'labs803.sas';