It does work for one table. I have 3 claim tables, with the same structure. When I use the same code upload the other two tables, I got copy error again. 428 libname SNOW sasiosnf SERVER="XXXX" 429 conopts="uid=&SNOWACNT.;authenticator=snowflake_jwt; 430 priv_key_file=XXXX/rsa_key.p8; 431 priv_key_file_pwd=&KeyPW.;" 432 Role="XXXX_ROLE" 433 warehouse="XXXX_WH" 434 database="XXXX_DB" 12 The SAS System 13:38 Monday, September 30, 2024 435 schema="XXXX" 436 READBUFF=32000 437 INSERTBUFF=32000 438 DBCOMMIT=32000 439 CONNECTION=GLOBAL BULKLOAD = YES BL_INTERNAL_STAGE = "SAS_LOAD"; NOTE: Libref SNOW was successfully assigned as follows: Engine: SASIOSNF Physical Name: XXXX 440 441 PROC SQL; 442 CONNECT USING SNOW; 443 Execute (REMOVE @Sas_LOAD) by SNOW; SNOWFLAKE_1: Executed: on connection 5 REMOVE @Sas_LOAD SNOWFLAKE: 0 row(s) affected by INSERT/UPDATE/DELETE or other statement. 444 DELETE FROM SNOW.TEST; SNOWFLAKE_2: Prepared: on connection 5 SELECT * FROM "XXXX"."TEST" SNOWFLAKE_3: Executed: on connection 5 delete from "XXXX"."TEST" SNOWFLAKE: 0 row(s) affected by INSERT/UPDATE/DELETE or other statement. SNOWFLAKE: COMMIT performed on connection 5. NOTE: No data found/modified. 445 EXECUTE (CREATE OR REPLACE TEMPORARY TABLE CLAIM ( 446 COL1 VARCHAR(1000), ... 477 ) 478 on commit preserve rows) by SNOW; SNOWFLAKE_4: Executed: on connection 5 CREATE OR REPLACE TEMPORARY TABLE CLAIM ( ...) on commit preserve rows 479 INSERT INTO SNOW.CLAIM 480 ( 481 COL1, 482 ... 512 ) 513 SELECT 514 COL1, 515 ... 545 FROM DATA.claim1; SNOWFLAKE_5: Prepared: on connection 5 SELECT * FROM "XXXX"."CLAIM" NOTE: The SQL statement cannot be executed directly against the database because it involves heterogeneous data sources. SNOWFLAKE_6: Prepared: on connection 5 SELECT * FROM "XXXX"."CLAIM" SNOWFLAKE: snudesc, failed to match primary key column(s) NOTE: 25686270 rows were inserted into SNOW.CLAIM. SNOWFLAKE_7: Executed: on connection 5 PUT 'file:///data1/saswork/SAS_util0001001A3C0C_apslp200158.XXX.com/SASSNBL_55821E19-CECE-AD46-9D5C-65B3B78074C6-00.dat' '@SAS_LOAD/' AUTO_COMPRESS = FALSE PARALLEL=4 OVERWRITE = TRUE SNOWFLAKE_8: Executed: on connection 5 PUT 'file:///data1/saswork/SAS_util0001001A3C0C_apslp200158.XXX.com/SASSNBL_55821E19-CECE-AD46-9D5C-65B3B78074C6-01.dat' '@SAS_LOAD/' AUTO_COMPRESS = FALSE PARALLEL=4 OVERWRITE = TRUE SNOWFLAKE_9: Executed: on connection 5 COPY INTO "XXXX"."CLAIM" ("COL1",...) FROM '@SAS_LOAD/' FILE_FORMAT=( TYPE=CSV FIELD_DELIMITER='\007' COMPRESSION=NONE ) FORCE=TRUE FILES = ( 'SASSNBL_55821E19-CECE-AD46-9D5C-65B3B78074C6-00.dat','SASSNBL_55821E19-CECE-AD46-9D5C-65B3B78074C6-01.dat' ) SNOWFLAKE: COMMIT performed on connection 5. 15 The SAS System 13:38 Monday, September 30, 2024 SNOWFLAKE_10: Executed: on connection 5 REMOVE '@SAS_LOAD/SASSNBL_55821E19-CECE-AD46-9D5C-65B3B78074C6-00.dat' SNOWFLAKE_11: Executed: on connection 5 REMOVE '@SAS_LOAD/SASSNBL_55821E19-CECE-AD46-9D5C-65B3B78074C6-01.dat' SNOWFLAKE: COMMIT performed on connection 5. 546 EXECUTE(INSERT INTO TEST 547 (COL1, ...) 578 SELECT COL1,... 609 FROM CLAIM) by SNOW; SNOWFLAKE_12: Executed: on connection 5 INSERT INTO TEST (COL1, ...) SELECT COL1, ... FROM CLAIM SNOWFLAKE: 25686270 row(s) affected by INSERT/UPDATE/DELETE or other statement. 610 DISCONNECT FROM SNOW; 611 QUIT; NOTE: PROCEDURE SQL used (Total process time): real time 8:22.21 user cpu time 4:47.14 system cpu time 14.26 seconds memory 7542.53k OS Memory 21400.00k Timestamp 09/30/2024 01:46:54 PM Step Count 92 Switch Count 0 Page Faults 5 Page Reclaims 389612 Page Swaps 0 Voluntary Context Switches 35392 Involuntary Context Switches 10794 Block Input Operations 7158128 Block Output Operations 12381184
... View more