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 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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.

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
  • 2272 views
  • 0 likes
  • 2 in conversation