<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to use Snowflake BULKUPLOAD and BL_NUM_READ_THREADS in libname and connections to Snowflake. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-Snowflake-BULKUPLOAD-and-BL-NUM-READ-THREADS-in/m-p/910328#M359010</link>
    <description>&lt;P&gt;I would like to be able to use&amp;nbsp;BULKUPLOAD and BL_NUM_READ_THREADS when connected to Snowflake.&amp;nbsp; Sample code follows.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%let cmsid = &amp;amp;_METAUSER;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt; &lt;STRONG&gt;sql&lt;/STRONG&gt; noprint;&lt;/P&gt;&lt;P&gt;connect to snow as x1 (DATABASE=ADM_PRD&amp;nbsp; DSN=Snowflake_OPI&lt;/P&gt;&lt;P&gt;&amp;nbsp; CONOPTS="authenticator=&lt;A href="https://xxx.xxx.xxx?snowflake=okta" target="_blank"&gt;https://xxx.xxx.xxx?snowflake=okta&lt;/A&gt;" role=OPIC_ADM_OPI_RWC_P&lt;/P&gt;&lt;P&gt;&amp;nbsp; SCHEMA=CMS_ADM_OPI authdomain=SNOW_Auth bl_internal_stage="user/&amp;amp;cmsid" BULKUNLOAD=YES);&lt;/P&gt;&lt;P&gt;EXECUTE (create or replace table FIVE_YEARS_HOS as … (many more fields specified)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SAS will not complain when I submit this code and it completes in 7.87s.&amp;nbsp; The query never shows up in the Snowflake Classic UI History.&amp;nbsp; Without the BULKUNLOAD=YES option the query runs for 32min 30s. and the table is created.&lt;/P&gt;</description>
    <pubDate>Wed, 03 Jan 2024 20:34:52 GMT</pubDate>
    <dc:creator>Vic1809</dc:creator>
    <dc:date>2024-01-03T20:34:52Z</dc:date>
    <item>
      <title>How to use Snowflake BULKUPLOAD and BL_NUM_READ_THREADS in libname and connections to Snowflake.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-Snowflake-BULKUPLOAD-and-BL-NUM-READ-THREADS-in/m-p/910328#M359010</link>
      <description>&lt;P&gt;I would like to be able to use&amp;nbsp;BULKUPLOAD and BL_NUM_READ_THREADS when connected to Snowflake.&amp;nbsp; Sample code follows.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%let cmsid = &amp;amp;_METAUSER;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt; &lt;STRONG&gt;sql&lt;/STRONG&gt; noprint;&lt;/P&gt;&lt;P&gt;connect to snow as x1 (DATABASE=ADM_PRD&amp;nbsp; DSN=Snowflake_OPI&lt;/P&gt;&lt;P&gt;&amp;nbsp; CONOPTS="authenticator=&lt;A href="https://xxx.xxx.xxx?snowflake=okta" target="_blank"&gt;https://xxx.xxx.xxx?snowflake=okta&lt;/A&gt;" role=OPIC_ADM_OPI_RWC_P&lt;/P&gt;&lt;P&gt;&amp;nbsp; SCHEMA=CMS_ADM_OPI authdomain=SNOW_Auth bl_internal_stage="user/&amp;amp;cmsid" BULKUNLOAD=YES);&lt;/P&gt;&lt;P&gt;EXECUTE (create or replace table FIVE_YEARS_HOS as … (many more fields specified)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SAS will not complain when I submit this code and it completes in 7.87s.&amp;nbsp; The query never shows up in the Snowflake Classic UI History.&amp;nbsp; Without the BULKUNLOAD=YES option the query runs for 32min 30s. and the table is created.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2024 20:34:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-Snowflake-BULKUPLOAD-and-BL-NUM-READ-THREADS-in/m-p/910328#M359010</guid>
      <dc:creator>Vic1809</dc:creator>
      <dc:date>2024-01-03T20:34:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Snowflake BULKUPLOAD and BL_NUM_READ_THREADS in libname and connections to Snowflake.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-Snowflake-BULKUPLOAD-and-BL-NUM-READ-THREADS-in/m-p/910340#M359011</link>
      <description>&lt;P&gt;Where is your source data coming from? A SAS table or some other source? If its a SAS table then I suggesting trying an APPEND. If the table doesn't already exist it should be created:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname MySnow snow DATABASE=ADM_PRD  DSN=Snowflake_OPI 
  CONOPTS="authenticator=https://xxx.xxx.xxx?snowflake=okta" role=OPIC_ADM_OPI_RWC_P
  SCHEMA=CMS_ADM_OPI authdomain=SNOW_Auth bl_internal_stage="user/&amp;amp;cmsid" insertbuff = 10000;

proc datasets library = MySnow nolist;
  append base = MySnowTable data = WORK.MySASTable;
run;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Once it is working without bulk loading then try with options BULKLOAD = Y and BULKUNLOAD = Y.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2024 21:14:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-Snowflake-BULKUPLOAD-and-BL-NUM-READ-THREADS-in/m-p/910340#M359011</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2024-01-03T21:14:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Snowflake BULKUPLOAD and BL_NUM_READ_THREADS in libname and connections to Snowflake.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-Snowflake-BULKUPLOAD-and-BL-NUM-READ-THREADS-in/m-p/910637#M359110</link>
      <description>&lt;P&gt;Assuming that BULKUPLOAD in the subject is a typo for BULKUNLOAD.&lt;/P&gt;
&lt;P&gt;I am a little confused, and probably due to ignorance.&lt;/P&gt;
&lt;P&gt;SAS doc ties these options to LIBNAME statement.&lt;/P&gt;
&lt;P&gt;I guess they could work wit an PROC SQL CONNECT TO as well.&lt;/P&gt;
&lt;P&gt;But code within an excute block is usually executed only in the target DBMS, so I would assume that your SAS specific options shouldn't affect the execution.&lt;/P&gt;
&lt;P&gt;It would help to see more of the code inside the EXECUTE block, but perhaps not all column names...&lt;/P&gt;
&lt;P&gt;Why are you using CONNECT TO? What happens if you try to use a libref instead? Then you could use these option to track Snowflake behaviour:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options msglevel=i sastrace=',,,d' sastraceloc=saslog nostsuffix;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If there's any unclarity in the doc or connection behaviour, you might want to try contacting SAS tech&amp;nbsp; support.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2024 16:31:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-Snowflake-BULKUPLOAD-and-BL-NUM-READ-THREADS-in/m-p/910637#M359110</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2024-01-05T16:31:14Z</dc:date>
    </item>
  </channel>
</rss>

