Does this post answer your problem? https://communities.sas.com/t5/SAS-Enterprise-Guide/EG8-2-vs-EG7-automatic-libname-tmp1/m-p/714620#M38031
... View more
1- DO a macro variable that conditionally comments and uncomments the keep and drop statements. OR 2- TRY a macro call that uses %if and %else to alternate between the keep and drop statements
... View more