x cd /pub/data/acs2010/Tools; %let pgm=temp_copy_metadata; filename pgm "&pgm..sas"; *---Temporarily copy files and data sets for this cycle from previous year pending true updates. We copy the table select modules in includes/selects and the variables metadata sets. jgb, 9-27-11. ---*; %libname(acs2009); libname acs2010 '/pub/data/acs2010'; libname btabs09 '/pub/data/acs2009/basetbls'; libname btabs10 '/pub/data/acs2010/basetbls'; data acs2010.variables; set acs2009.variables; run; data btabs10.variables00_07; set btabs09.variables00_07; run; data btabs10.variables08; set btabs09.variables08; run; data btabs10.variables09_15; set btabs09.variables09_16; run; data btabs10.variables17_20; set btabs09.variables17_20; run; data btabs10.variables21_24; set btabs09.variables21_24; run; data btabs10.variables25_27; set btabs09.variables25_27; run; %let spath=%str(/pub/includes/selects); /* ========================begin comment==================================== %macro copyfl(sfx); %global spath; data _null_; infile "&spath/acs2009&sfx._tables.html"; input; file "&spath/acs2010&sfx._tables.html"; put _infile_; run; %mend copyfl; %copyfl(00_07) %copyfl(08) %copyfl(09_16) %copyfl(17_20) %copyfl(21_24) %copyfl(25_27) *---and now copy key metadata from the basetbls subdirectory from last year to this year---; %let bpathold=%str(/pub/data/acs2009/basetbls); %let bpathnew=%str(/pub/data/acs2010/basetbls); ** x mkdir &bpathnew/Varlabs ; x cp -r &bpathold/Varlabs &bpathnew ; x cp &bpathold/TableTopicCodes.txt &bpathnew; x cp &bpathold/keyvals.html &bpathnew ; ==========================end comment====================================== */