mirror of
https://github.com/sasjs/core.git
synced 2026-01-14 03:50:06 +00:00
feat: adding iftrue condition to mp_dropmembers for easier debug management
This commit is contained in:
@@ -17,8 +17,9 @@
|
|||||||
@li mf_isblank.sas
|
@li mf_isblank.sas
|
||||||
|
|
||||||
|
|
||||||
@param list space separated list of datasets / views, WITHOUT libref
|
@param [in] list space separated list of datasets / views, WITHOUT libref
|
||||||
@param libref= (WORK) Note - you can only drop from a single library at a time
|
@param [in] libref= (WORK) Note - you can only drop from one library at a time
|
||||||
|
@param [in] iftrue= (1=1) Conditionally drop tables, eg if &debug=N
|
||||||
|
|
||||||
@version 9.2
|
@version 9.2
|
||||||
@author Allan Bowe
|
@author Allan Bowe
|
||||||
@@ -28,8 +29,11 @@
|
|||||||
%macro mp_dropmembers(
|
%macro mp_dropmembers(
|
||||||
list /* space separated list of datasets / views */
|
list /* space separated list of datasets / views */
|
||||||
,libref=WORK /* can only drop from a single library at a time */
|
,libref=WORK /* can only drop from a single library at a time */
|
||||||
|
,iftrue=%str(1=1)
|
||||||
)/*/STORE SOURCE*/;
|
)/*/STORE SOURCE*/;
|
||||||
|
|
||||||
|
%if not(%eval(%unquote(&iftrue))) %then %return;
|
||||||
|
|
||||||
%if %mf_isblank(&list) %then %do;
|
%if %mf_isblank(&list) %then %do;
|
||||||
%put NOTE: nothing to drop!;
|
%put NOTE: nothing to drop!;
|
||||||
%return;
|
%return;
|
||||||
|
|||||||
Reference in New Issue
Block a user