Loading...
Searching...
No Matches
dc_getlibs.sas
Go to the documentation of this file.
1/**
2 @file dc_getlibs.sas
3 @brief Gets all available libraries
4 @details There are two versions of this macro - a META and a VIYA version (in
5 different folders). The interfaces is the same. This version is VIYA.
6
7 <h4> SAS Macros </h4>
8
9 @version 9.3
10 @author 4GL Apps Ltd
11 @copyright 4GL Apps Ltd. This code may only be used within Data Controller
12 and may not be re-distributed or re-sold without the express permission of
13 4GL Apps Ltd.
14
15 @sasjslint {"maxLineLength": 82}
16
17**/
18
19%macro dc_getlibs(outds=mm_getlibs);
20proc sql;
21create table &outds as
22 select distinct libname as LibraryRef
23 ,libname as LibraryName length=256
24 ,engine
25 ,'' as libraryid length=17
26 from dictionary.libnames
27 where upcase(libname) not in ("WORK","SASUSER","CASUSER","%upcase(&dc_libref)");
28insert into &syslast values ("&DC_LIBREF", "&DC_LIBNAME",'','V9');
29
30%if "&sasjs_mdebug"="1" %then %do;
31 data _null_;
32 set &outds;
33 putlog "NOTE: &sysmacroname: &outds:";
34 putlog (_all_)(=);
35 run;
36%end;
37
38%mend dc_getlibs;