Macros for SAS Application Developers
https://github.com/sasjs/core
Loading...
Searching...
No Matches
mddl_dirlist.sas
Go to the documentation of this file.
1/**
2 @file
3 @brief DDL for the fixed directory listing columns
4 @details Creates an empty table with the names, types and lengths used by
5 mp_dirlist. The table must not already exist.
6
7 Example:
8
9 %mddl_dirlist(work.dirlist_schema)
10
11 @param [in] libds Required table to create
12
13 <h4> Related Macros </h4>
14 @li mp_dirlist.sas
15
16 @version 9.2
17 @author sasjs@4gl.io
18**/
19
20%macro mddl_dirlist(libds);
21 %if %sysevalf(%superq(libds)=,boolean) %then %do;
22 %put %str(ERR)OR: MDDL_DIRLIST requires a table name.;
23 %let syscc=%sysfunc(max(&syscc,1012));
24 %return;
25 %end;
26
27 proc sql;
28 create table &libds( directory char(2000), filepath char(2000),
29 file_or_folder char(6), filename char(255), ext char(20),
30 msg char(200), level num );
31 quit;
32%mend mddl_dirlist;