x cd /pub/data/pl942010/Tools; %let pgm=invoke_dosets_trbgtrnd; filename pgm "&pgm..sas"; /*--Invoke the %doset macro to create observations in the Datasets dataset for this pl942010/trbgtrnd directory. J. Blodgett, OSEDA, Apr, 2011 -- */ title "Job to Invoke doset Macro for Sets in pl942010/trbgtrnd, creating trbgtrnd.datasets"; libname pl942010 '/pub/data/pl942010'; libname trbgtrnd '/pub/data/pl942010/trbgtrnd'; %let libnameg=trbgtrnd; *-----Run this step ONLY ONCE------------------------------------------; *----If you need to rerun (start over) then delete the datasets dataset first. doset will not allow initialize mode if the datasets set already exists.---; %**doset(mode=initialize, libname=trbgtrnd,debug=1); *----------------------------------------------------------------------; options mprint; %macro doit(state,stab); %doset(memname=&stab.bgtrcost, filetype=pl942010, geouniv=&statenm, units=%nrbquote(state county tract bg), Years=2010, CreatePgm=pl94_trbgtrnd, Description=%nrbquote(Combines basic demographic counts: total pop and by race and hispanic from the 2000 & 2010 censuses. Summaries at the census tract (140) and block group (150) levels as well as state totals and county. The 2000 date were allocated to 2010 geography using the Bureau blkrel10 equivalency files.), keyvars=sumlev county cbsa msacmsa, keyfmats=sumlev county cbsa metro, DataSource=%str(2000 & 2010 PL94 files. Conversion of 2000 data to 2010 by MCDC using blkrel10 input.), SortedBy=County tract bg, UsageNotes=%nrbquote(