mirror of
https://github.com/sasjs/core.git
synced 2026-03-09 20:48:10 +00:00
feat: snowflake support in mf_getschema
This commit is contained in:
@@ -25,8 +25,9 @@
|
||||
%local dsid vnum rc schema;
|
||||
/* in case the parameter is a libref.tablename, pull off just the libref */
|
||||
%let libref = %upcase(%scan(&libref, 1, %str(.)));
|
||||
/* sysname can be 'Schema/Owner' or just 'Schema' (eg snowflake) */
|
||||
%let dsid=%sysfunc(open(sashelp.vlibnam(where=(
|
||||
libname="%upcase(&libref)" and sysname='Schema/Owner'
|
||||
libname="%upcase(&libref)" and sysname=:'Schema'
|
||||
)),i));
|
||||
%if (&dsid ^= 0) %then %do;
|
||||
%let vnum=%sysfunc(varnum(&dsid,SYSVALUE));
|
||||
|
||||
Reference in New Issue
Block a user