x cd /pub/data/Tools; %let pgm=remove_datasets_entries; filename pgm "&pgm..sas"; /* Clears obsolete entries from datasets.sas7bdat files. Makes a backup copy first. */ options nomprint nosymbolgen nosource; libname input '/pub/data/popests'; *<====== adjust as necessary ; data input.datasets_old; set input.datasets; run; data input.datasets; set input.datasets; if libname = "" then delete; if libname = "archives" then delete; if memname = "datasets_backup" then delete; if memname = "datasets_bkup" then delete; if memname = "datasetsold" then delete; if memname = "dmig_report_mocos" then delete; if memname = "dmig_report_states" then delete; if memname = "moagesex05" then delete; if memname = "mocasrh11" then delete; if memname = "mocasrh12" then delete; if memname = "mocasrh13" then delete; if memname = "mocasrh16" then delete; if memname = "mocbsas_byage" then delete; if memname = "mocom07t" then delete; if memname = "mocom08" then delete; if memname = "mocom08t" then delete; if memname = "mocom09" then delete; if memname = "mocom11" then delete; if memname = "mocom11t" then delete; if memname = "mocom12" then delete; if memname = "mocom12t" then delete; if memname = "mocom13" then delete; if memname = "mocom13t" then delete; if memname = "mocom14" then delete; if memname = "mocom14t" then delete; if memname = "mocom15" then delete; if memname = "mocom15t" then delete; if memname = "mocom16" then delete; if memname = "mocom16t" then delete; if memname = "mocom17" then delete; if memname = "mocom17t" then delete; if memname = "mocom99" then delete; if memname = "mocom99sasvw" then delete; if memname = "mocomregns05" then delete; if memname = "mocomregns06" then delete; if memname = "mocomregns07" then delete; if memname = "mocomregns08" then delete; if memname = "mocomregns11" then delete; if memname = "mocomregns12" then delete; if memname = "mocomregns13" then delete; if memname = "mocomregns14" then delete; if memname = "mocomregns15" then delete; if memname = "moctychar03" then delete; if memname = "mohuest2005" then delete; if memname = "mohuest2006" then delete; if memname = "mohuest2007" then delete; if memname = "mohuest2008" then delete; if memname = "mohuest2011" then delete; if memname = "mohuest2012" then delete; if memname = "mohuest2013" then delete; if memname = "mohuest2014" then delete; if memname = "mohuest2015" then delete; if memname = "mohuest2016" then delete; if memname = "mohuest2017" then delete; if memname = "mopluscom06" then delete; if memname = "moprojnchsbridged_sumry" then delete; if memname = "mosc04" then delete; if memname = "mosc05" then delete; if memname = "mosc06" then delete; if memname = "mosc07" then delete; if memname = "mosc08" then delete; if memname = "mosc11" then delete; if memname = "mosc12" then delete; if memname = "mosc13" then delete; if memname = "mosc14" then delete; if memname = "mosc15" then delete; if memname = "mosc16" then delete; if memname = "popchange_logs" then delete; if memname = "trends_rex07" then delete; if memname = "us1dimsums_casrh13" then delete; if memname = "us1dimsums_casrh14" then delete; if memname = "us1dimsums_casrh15" then delete; if memname = "uscom13" then delete; if memname = "uscom14" then delete; if memname = "uscom15" then delete; if memname = "uscom16" then delete; if memname = "uscom17" then delete; if memname = "uscomcbsas11" then delete; if memname = "uscomcbsas12" then delete; if memname = "uscomcbsas13" then delete; if memname = "uscomcbsas14" then delete; if memname = "uscomcbsas15" then delete; if memname = "uscomcbsas16" then delete; if memname = "uscomcbsas17" then delete; if memname = "uscomnst08" then delete; if memname = "uscomnst15" then delete; if memname = "uscomnst16" then delete; if memname = "uscomnst17" then delete; if memname = "usgqhhpops10" then delete; if memname = "ushuest2005" then delete; if memname = "ushuest2006" then delete; if memname = "ushuest2007" then delete; if memname = "ushuest2008" then delete; if memname = "ushuest2011" then delete; if memname = "ushuest2012" then delete; if memname = "ushuest2013" then delete; if memname = "ushuest2014" then delete; if memname = "ushuest2015" then delete; if memname = "ushuest2016" then delete; if memname = "ushuest2017" then delete; if memname = "ussc13" then delete; if memname = "ussc14" then delete; if memname = "ussc15" then delete; if memname = "ussc16" then delete; if memname = "ussc17" then delete; if memname = "usstatescasrh06" then delete; if memname = "usstatescasrh07" then delete; if memname = "usstatescasrh08" then delete; if memname = "usstatescasrh11" then delete; if memname = "usstatescasrh12" then delete; run ;