x cd /pub/data/dhc2020/Tools; %let pgm=invoke_dosets_cdsldspumas; filename pgm "&pgm..sas"; /* Invoke the %doset macro to create observations in the Datasets dataset for this directory. */ title "Job to invoke doset macro for XXcdsldspumas sets in dhc2020, adding to dhc2020.datasets"; options notes source nosource2 nosymbolgen mprint spool; %include '/pub/sas/autoexec.sas'; libname dhc2020 '/pub/data/dhc2020'; %let libnameg = dhc2020; %let todo=; %let todolist=; %*let todo=usplaces usplaces160 usplaces10k; *<======= NOTE ; %*let todo=&stab.inventory; /* Run this step ONLY ONCE. If you need to rerun (start over), delete the datasets dataset first. doset will not allow initialize mode if the datasets set already exists. */ %*doset(mode=initialize, libname=dhc2020, debug=1); %macro doit(state, stab); %doset( mode=, libname=dhc2020, memname=&stab.cdsldspumas, memlabel=%str(&statenm P and H tables for 116th CDs, 2018-vintage SLDs, and 2022 PUMAs), geouniv=&statenm, units=cd116 sldl18 sldu18 puma22, Years=2020, CreatePgm=make_cdsldspumas.sas, Keywords=2020 census DHC, Description=%nrbquote(P and H tables for 116th CDs, 2018-vintage SLDs, and 2022 PUMAs in &statenm), keyvars= sumlev state, keyfmats=sumlev state, keyquals=, DataSource=%str(U.S. Bureau of the Census/MCDC aggregation), SortedBy=LogRecNo, UsageNotes=%nrbquote(
[TableId]i[cell#], where TableID is the table ID and cell# is the cell or line number within the table, e.g. pco2i3 is the third cell in table PCO2.