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

feat: snowflake support in mm_assigndirectlib

This commit is contained in:
allan
2026-03-10 20:01:38 +00:00
parent 737eb65251
commit df0c9899cf
2 changed files with 81 additions and 1 deletions

View File

@@ -0,0 +1,30 @@
/**
@file
@brief Testing mm_assigndirectlib macro
@details A valid library must first be configured in metadata.
To test success, also define a table for which we can test the existence.
This is a unit test - not part of the full test run, as it would be a
lot of overhead to create an external DB and metadata setup each time.
<h4> SAS Macros </h4>
@li mf_existds.sas
@li mp_assert.sas
@li mp_assertscope.sas
@li mm_assigndirectlib.sas
**/
%let runtest=0;
%let libref=XXX;
%let ds=XXXX;
%mp_assertscope(SNAPSHOT)
%mm_assigndirectlib(&libref)
%mp_assertscope(COMPARE)
%mp_assert(
iftrue=(&runtest=1 and %mf_existds(&libref..&ds)),
desc=Check if &libref..&ds exists
)