x cd /pub/data/sf12010/Tools; %let pgm=invoke_dosets_cdsldspumas2012; filename pgm "&pgm..sas"; /*--Invoke the %doset macro to create observations for the collection of XXcdslds2012 sets created in Oct 2014. J. Blodgett, OSEDA, January, 2015. (better late than never), -- */ title "Job to Invoke doset Macro for XXcdsldspumas2012 Sets in sf12010, adding to sf12010.datasets"; libname sf12010 '/pub/data/sf12010'; libname sf1 (sf12010); %let libnameg=sf12010; %let todo=; %macro doit(state,stab); %doset(mode=,libname=sf12010, memname=&stab.cdsldspumas2012, memlabel=%str(&statenm P & H tables for 113th Cong Dstrcts and 2012-vintage SLDs and PUMAs), createPgm=agg_sf12010_uscdsldspumas2012, geouniv=&statenm, units=cd113 sldl2012 sldu2010 puma10, sortprio=2, Description=%nrbquote(P and H Tables For 2012 vintage Geographic Areas in &statenm), DataSource=%str(U.S. Bureau of the Census/MCDC Special Processing), keyvars= sumlev state, keyfmats=sumlev state, UsageNotes=%nrbquote(), SubType=ph, SetGroup=cdsldspumas2012, VarSet=variablesph, URLMeta=%str(https://mcdc.missouri.edu/data/sf12010/TechDoc/index.html), debug=0); %mend doit; %dostates(n=51,names=1) ; proc sort data=sf12010.datasets out=bysortprio; by sortprio; run; proc datasets library=sf12010 nolist; modify datasets; index delete dataset memname; index create dataset=(libname memname) / unique; index create memname; quit; options NOmprint msglevel=i; %gendshtm(libname=sf12010,debug=0,runprocc=1);