x cd /pub/data/cbp/Tools; %let pgm=cnvtcbp0709; filename pgm "&pgm..sas"; /*--This is a slightly revised version of the cnvtyy_naics.sas setup. The _2011 suffix reflects when it was initially coded. We should be able to tweak this code to run conversions for many different yrs. Nov 2011: Converting ustotals, states, counties and msas for 09 data year using revising cbpcnvt macro. ---*/ ***libname user '/SAS_temp/userb'; libname cbp '/pub/data/cbp'; ***libname user '/SAS_temp/userb'; options mprint; *<====while debugging only--; options compress=binary; *---the conversion macro is in /pub/sas/macros/cbpcnv2.sas and does most of the work---; /* ========================begin comment==================================== %cbpcnv2(files=us,yr=07,unzip=0,debug=0); %cbpcnv2(files=us,yr=08,debug=0); %cbpcnv2(files=us,yr=09,debug=0); %cbpcnv2(files=state,yr=07,debug=0); %cbpcnv2(files=state,yr=08,debug=0); %cbpcnv2(files=state,yr=09,debug=0); ==========================end comment====================================== */ %cbpcnv2(yr=07); %cbpcnv2(yr=08); %cbpcnv2(yr=09);