Files
dc/sas/sasjs/targets/viya/macros_viya/dc_getlibs.sas
T
allan ec66631a33
Build / Build-and-ng-test (pull_request) Successful in 4m15s
Build / Build-and-test-development (pull_request) Successful in 10m28s
Lighthouse Checks / lighthouse (pull_request) Successful in 18m47s
fix: remove WORK, SASUSER and CASUSER as library options. #224
2026-04-17 14:21:24 +01:00

28 lines
821 B
SAS

/**
@file dc_getlibs.sas
@brief Gets all available libraries
@details There are two versions of this macro - a META and a VIYA version (in
different folders). The interfaces is the same. This version is VIYA.
<h4> SAS Macros </h4>
@version 9.3
@author 4GL Apps Ltd
@copyright 4GL Apps Ltd. This code may only be used within Data Controller
and may not be re-distributed or re-sold without the express permission of
4GL Apps Ltd.
**/
%macro dc_getlibs(outds=mm_getlibs);
proc sql;
create table &outds as
select distinct libname as LibraryRef
,libname as LibraryName length=256
,engine
,'' as libraryid length=17
from dictionary.libnames
where libname not in ('WORK','SASUSER','CASUSER');
insert into &syslast values ("&DC_LIBREF", "&DC_LIBNAME",'','V9');
%mend dc_getlibs;