BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
garyhaas
Calcite | Level 5

Want to use Bulkload to an existing Snowflake table that has been created using a Create table statement.  But libname bulk load complains that table already exists.  Is there a way to use bulkload using a connect statement with execute commands?

1 ACCEPTED SOLUTION

Accepted Solutions
SASKiwi
PROC Star

Great, its the same thing. Please mark your post as answered then.

View solution in original post

5 REPLIES 5
SASKiwi
PROC Star

Can you please post the SAS log including code and notes?

garyhaas
Calcite | Level 5

Need to pre-define table with Create table statement, not delete it before load

 

219 data mydblib.zipterr_rbu_&qtr
220 (bulkload=yes
221 bl_internal_stage="user/someuser"
222 BL_COMPRESS=yes);
223 set idata.rbu_&terr._zip
224 ;

SNOWFLAKE: AUTOCOMMIT turned ON for connection id 1

SNOWFLAKE_1: Prepared: on connection 1
SELECT * FROM "CDW_US_ASB_GBA_DB"."zipterr_rbu_Q221b" WHERE 0=1


DBMS_TIMER: summary statistics
DBMS_TIMER: total SQL prepare seconds were: 0
DBMS_TIMER: dbiopen/dbiclose timespan was 0.
ERROR: The SNOWFLAKE table zipterr_rbu_Q221b has been opened for OUTPUT. This table already exists, or there is a name
conflict with an existing object. This table will not be replaced. This engine does not support the REPLACE
option.
NOTE: The SAS System stopped processing this step because of errors.
NOTE: Due to ERROR(s) above, SAS set option OBS=0, enabling syntax check mode.
This prevents execution of subsequent data modification statements.
NOTE: DATA statement used (Total process time):
real time 2.62 seconds
cpu time 0.75 seconds

 

SASKiwi
PROC Star

Just to clarify, are you just appending rows here? If so I suggest you try PROC DATASETS with the APPEND statement where the BASE table is pre-defined table and the APPEND table is your SAS table.

garyhaas
Calcite | Level 5

Yes, that was the advice of Tech support and it works.  I used PROC APPEND rather than PROC DATASETS but that shouldn't matter.

Thank you for the advice!

SASKiwi
PROC Star

Great, its the same thing. Please mark your post as answered then.

sas-innovate-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 5 replies
  • 2537 views
  • 0 likes
  • 2 in conversation