Help using Base SAS procedures

Issues when uploading to an existing Teradata table which contains the previous data

Reply
Occasional Contributor wg
Occasional Contributor
Posts: 7

Issues when uploading to an existing Teradata table which contains the previous data

Hi, how can I upload data to append to an existing Teradata table in SAS?

Thank you

Super User
Super User
Posts: 7,076

Re: Issues when uploading to an existing Teradata table which contains the previous data

libname td teradata server= ..... ;

proc append base=td.existing  data=new_data ; run;

Occasional Contributor wg
Occasional Contributor
Posts: 7

Re: Issues when uploading to an existing Teradata table which contains the previous data

Hi Tom... Thank you very much ... But I have 9,000,000 obs to upload. You method may take very very long time to load...

Super User
Super User
Posts: 7,076

Re: Issues when uploading to an existing Teradata table which contains the previous data

Why do you think it will take a long time?

You can use the FASTLOAD option, but that requires an empty table.  So load to an empty table then use passthrough code to insert it into the target table.

Occasional Contributor wg
Occasional Contributor
Posts: 7

Re: Issues when uploading to an existing Teradata table which contains the previous data

Fastload can only be done for appending data to an empty table. But I kept history data there. So I cannot use Fastload...

Super User
Super User
Posts: 7,076

Re: Issues when uploading to an existing Teradata table which contains the previous data

Load into an empty table and the copy on the TD side.

proc sql ;

  connect to teradata (....);

  execute (insert ..... ) by teradata ;

quit;

Ask a Question
Discussion stats
  • 5 replies
  • 210 views
  • 0 likes
  • 2 in conversation