1
0
mirror of https://github.com/sasjs/core.git synced 2026-01-16 04:50:05 +00:00

chore: automated commit

This commit is contained in:
Allan Bowe
2021-05-13 10:34:54 +03:00
parent de67cd329b
commit 20bf3b86af
2 changed files with 18 additions and 10 deletions

14
all.sas
View File

@@ -2936,20 +2936,24 @@ run;
%mend;/** %mend;/**
@file @file
@brief Drops tables / views (if they exist) without warnings in the log @brief Drops tables / views (if they exist) without warnings in the log
@details @details Useful for dropping tables when you're not sure they exist, or if
you are not sure whether they are a dataset or view. Also efficient for
dropping multiple tables / views.
Example usage: Example usage:
proc sql; proc sql;
create table data1 as select * from sashelp.class; create table data1 as select * from sashelp.class;
create view view2 as select * from sashelp.class; create view view2 as select * from sashelp.class;
%mp_dropmembers(list=data1 view2) %mp_dropmembers(libref=WORK, list=data1 view2)
<h4> SAS Macros </h4> <h4> SAS Macros </h4>
@li mf_isblank.sas @li mf_isblank.sas
@param list space separated list of datasets / views @param list space separated list of datasets / views, WITHOUT libref
@param libref= can only drop from a single library at a time @param libref= (WORK) Note - you can only drop from a single library at a time
@version 9.2 @version 9.2
@author Allan Bowe @author Allan Bowe
@@ -2970,7 +2974,7 @@ run;
delete &list; delete &list;
delete &list /mtype=view; delete &list /mtype=view;
run; run;
%mend;/** %mend mp_dropmembers;/**
@file @file
@brief Create a CARDS file from a SAS dataset. @brief Create a CARDS file from a SAS dataset.
@details Uses dataset attributes to convert all data into datalines. @details Uses dataset attributes to convert all data into datalines.

View File

@@ -1,20 +1,24 @@
/** /**
@file @file
@brief Drops tables / views (if they exist) without warnings in the log @brief Drops tables / views (if they exist) without warnings in the log
@details @details Useful for dropping tables when you're not sure they exist, or if
you are not sure whether they are a dataset or view. Also efficient for
dropping multiple tables / views.
Example usage: Example usage:
proc sql; proc sql;
create table data1 as select * from sashelp.class; create table data1 as select * from sashelp.class;
create view view2 as select * from sashelp.class; create view view2 as select * from sashelp.class;
%mp_dropmembers(list=data1 view2) %mp_dropmembers(libref=WORK, list=data1 view2)
<h4> SAS Macros </h4> <h4> SAS Macros </h4>
@li mf_isblank.sas @li mf_isblank.sas
@param list space separated list of datasets / views @param list space separated list of datasets / views, WITHOUT libref
@param libref= can only drop from a single library at a time @param libref= (WORK) Note - you can only drop from a single library at a time
@version 9.2 @version 9.2
@author Allan Bowe @author Allan Bowe
@@ -35,4 +39,4 @@
delete &list; delete &list;
delete &list /mtype=view; delete &list /mtype=view;
run; run;
%mend; %mend mp_dropmembers;