diff --git a/base/mp_ds2md.sas b/base/mp_ds2md.sas index a7d5a7d..543c5cc 100644 --- a/base/mp_ds2md.sas +++ b/base/mp_ds2md.sas @@ -57,6 +57,11 @@ %local vars; %let vars=%upcase(%mf_getvarlist(&libds)); +%if %trim(X&vars)=X %then %do; + %put &sysmacroname: Table &libds has no columns!!; + %return; +%end; + /* create the header row */ data _null_; file &outref;