BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
1 ACCEPTED SOLUTION

Accepted Solutions
LinusH
Tourmaline | Level 20
Assuming that your driver etc is already configured, it looks like your statemnts is in the wrong order, using should refer to the exact name in the libname statement
libname mylib snow server='<account>.snowflakecomputing.com' user=myusr|password=mypwd|warehouse=compute_wh
database=mydb schema=mydb role=user;
proc sql;
connect using SNOW as snow1;
select * from connection to snow1 (query goes here);
disconnect from snow1;
quit;
Data never sleeps

View solution in original post

5 REPLIES 5
LinusH
Tourmaline | Level 20

The most straightforward way is to use SAS/ACCESS to Snowflake, then you "download" data to your SAS session host.

There are several way how to design this, depending on your requirements and constraints, like:

- What is your use case?

- How much data do you need to work with?

- What version of SAS do you have?

- Where is you SAS session executing (relative to your Snowflake instance)

One takeaway is that many Snowflake user tries to keep the data in the DB and have as much of you queries execute there, and then only upload portion of data that is needed for SAS VA/VS (data set needs to be loaded to LASR/CAS).

Data never sleeps
ksailaxmi
Fluorite | Level 6

Hi Linush,


I am working on a retrospective data -Want to take specific data directly from snowflake-
SAS Version 9.4 - Snowflake Enterprise - with Azure Cloud.

Tried this -

 

proc sql;
connect using SNOW1;


libname mylib snow server='<account>.snowflakecomputing.com' user=myusr|password=mypwd|warehouse=compute_wh
database=mydb schema=mydb role=user;
;

LinusH
Tourmaline | Level 20
Assuming that your driver etc is already configured, it looks like your statemnts is in the wrong order, using should refer to the exact name in the libname statement
libname mylib snow server='<account>.snowflakecomputing.com' user=myusr|password=mypwd|warehouse=compute_wh
database=mydb schema=mydb role=user;
proc sql;
connect using SNOW as snow1;
select * from connection to snow1 (query goes here);
disconnect from snow1;
quit;
Data never sleeps
ksailaxmi
Fluorite | Level 6

Hi Linush 

Please check this, and suggest the needful 

 


libname mylib snow server='ABC.east-us-2.azure.snowflakecomputing.com:443' user=SKESANA|password=XXXXXX@123|warehouse=DATA_SCIENCE_XS
      database=GRN_DEV schema=GDW_REP role=FR_DATA_SCIENCE_VIEW;

 

ERROR

libname mylib snow server='ABC.east-us-2.azure.snowflakecomputing.com:443'
38 ! user=SKESANA|password=XXXXXX@123|warehouse=DATA_SCIENCE_XS
39 database=GRN_DEV schema=GDW_REP role=FR_DATA_SCIENCE_VIEW;
ERROR: The SNOW engine cannot be found.
ERROR: Error in the LIBNAME statement.

ksailaxmi
Fluorite | Level 6

Thanks, Linush - You guessed it right - My driver is not yet configured - I am trying with trial version

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
  • 5 replies
  • 1426 views
  • 2 likes
  • 2 in conversation