Macros for SAS Application Developers
https://github.com/sasjs/core
Loading...
Searching...
No Matches
mddl_getgroups.sas
Go to the documentation of this file.
1/**
2 @file
3 @brief DDL for the shared group model
4 @details Creates an empty table with the names, types and lengths returned by
5 the group listing macros. The table must not already exist.
6
7 Example:
8
9 %mddl_getgroups(work.group_schema)
10
11 @param [in] libds Required table to create
12
13 <h4> Related Macros </h4>
14 @li mm_getgroups.sas
15 @li ms_getgroups.sas
16 @li mv_getgroups.sas
17 @li mx_getgroups.sas
18
19 @version 9.2
20 @author sasjs@4gl.io
21**/
22
23%macro mddl_getgroups(libds);
24 %if %sysevalf(%superq(libds)=,boolean) %then %do;
25 %put %str(ERR)OR: MDDL_GETGROUPS requires a table name.;
26 %let syscc=%sysfunc(max(&syscc,1012));
27 %return;
28 %end;
29
30 proc sql;
31 create table &libds( groupuri char(256), groupname char(256),
32 groupdesc char(256) );
33 quit;
34%mend mddl_getgroups;