BookmarkSubscribeRSS Feed
Krushik
Calcite | Level 5
Usecase: I want to push data from SAS to user stage.
Problem: bl_internal_stage is not working
When I try to execute the following query , bl_internal_stage is not working

15      
LIBNAME snowkipi ODBC datasrc='snow_db_kipi'
16       user='XXXXXXXXXXX'
17       password=XXXXXXXXXXX
18       schema='landing'
19      bulkload=yes bl_internal_stage="user/XXXXXXXXXXX";
                     -----------------
                     22
ERROR: Libref SNOWKIPI is not assigned.
ERROR: Error in the LIBNAME statement.
ERROR 22-7: Invalid option name BL_INTERNAL_STAGE.
2 REPLIES 2
s_lassen
Meteorite | Level 14

As far as I can see the SAS/ODBC connection does not support the bl_internal_stage option directly. But it may be possible to put it in the CONOPTS parameter, something like 

conopts='bl_internal_stage="user/XXXXXXXXXXX"'

which may work. I do not have experience with the Snowflake ODBC donnection, though.

LinusH
Tourmaline | Level 20

BL_INTERNAL:_STAGE is only supported in the SNOWFLAKE access engine.

I think this option is a SAS name, so I highly doubt that it could work in a connection options string. 

The Snowflake ODBC driver supports specifying internal stage when using PUT. Not sure how make that work from a SAS libname though.

https://docs.snowflake.com/en/sql-reference/sql/put

If you plan to use Snowflake extensively from SAS I suggest you look into using the Snowflake ACCESS engine instead.

Data never sleeps

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 610 views
  • 1 like
  • 3 in conversation