diff --git a/sas/sasjs/macros/mpe_refreshcatalogs.sas b/sas/sasjs/macros/mpe_refreshcatalogs.sas index 5a5520a..7a29cf9 100644 --- a/sas/sasjs/macros/mpe_refreshcatalogs.sas +++ b/sas/sasjs/macros/mpe_refreshcatalogs.sas @@ -3,9 +3,7 @@ @brief Refreshes the data catalog @details Assumes library is already assigned. - @param [in] etlsource= (refreshcatalog::%mf_uid()) identifies this load - in the MPE_DATALOADS audit row. That table is keyed on etlsource together - with processed_dttm, libref and dsn, so the uid keeps each load distinct. + @param [in] etlsource identifies this load in the MPE_DATALOADS audit row. Usage: @@ -21,11 +19,10 @@ **/ -%macro mpe_refreshcatalogs(lib,cat=#all - ,etlsource=refreshcatalog:mpe_refreshcatalogs:%mf_uid() -); +%macro mpe_refreshcatalogs(lib,etlsource=0,cat=#all); %let lib=%upcase(&lib); %let cat=%upcase(&cat); +%if "&etlsource"="0" %then %let etlsource=%mf_uid(); %put running &sysmacroname &lib for &cat; proc sql;