1
0
mirror of https://github.com/sasjs/core.git synced 2026-03-10 04:58:10 +00:00

feat: snowflake support in mf_getschema

This commit is contained in:
allan
2026-02-18 17:23:25 +00:00
parent 9930b84785
commit c69639a228

View File

@@ -25,8 +25,9 @@
%local dsid vnum rc schema; %local dsid vnum rc schema;
/* in case the parameter is a libref.tablename, pull off just the libref */ /* in case the parameter is a libref.tablename, pull off just the libref */
%let libref = %upcase(%scan(&libref, 1, %str(.))); %let libref = %upcase(%scan(&libref, 1, %str(.)));
/* sysname can be 'Schema/Owner' or just 'Schema' (eg snowflake) */
%let dsid=%sysfunc(open(sashelp.vlibnam(where=( %let dsid=%sysfunc(open(sashelp.vlibnam(where=(
libname="%upcase(&libref)" and sysname='Schema/Owner' libname="%upcase(&libref)" and sysname=:'Schema'
)),i)); )),i));
%if (&dsid ^= 0) %then %do; %if (&dsid ^= 0) %then %do;
%let vnum=%sysfunc(varnum(&dsid,SYSVALUE)); %let vnum=%sysfunc(varnum(&dsid,SYSVALUE));