BookmarkSubscribeRSS Feed
nickspencer
Obsidian | Level 7
I am trying to load SAS dataset into a teradata table but I am getting error while using multistmt option with proc append. My program looks like below.

Libname tdwork teradata user=“xxxxx” password=“xxxxx”
tdpid =“xxxx” connection=global dbmstemp=yes;

proc sql;
connect to teradata (user=“xxxxxx” password=“xxxxxx” tdpid=“xxxxx” connection =global);

execute ( create multiset volatile table test_tera
(column1 char(40))
no primary index
on commit preserve rows)
by teradata;
execute (commit work) by teradata;
quit;

proc append base=tdwork.test_tera(multistmt=yes)
data =dataset1;
run;

ERROR: Teradata connection: object ‘test_tera’ does not exist. Correct error and restart as an append process with option TPT_RESTART=YES. Since no checkpoints were taken, if previous run used FIRSTOBS=n, use the same value in the restart.

Am I doing something incorrectly? When I remove multistmt option, it is running forever. I thought multistmt would work with volatile table.

Any help is appreciated

Thanks

2 REPLIES 2
Tom
Super User Tom
Super User

How large is the data you are uploading?

When I was working with Teradata I found it to be much faster to load the data into a permanent database since it would allow me to use FASTLOAD option.  I even had a macro that would automate loading into a unique permanent table name and then execute Teradata commands to copy it from the permanent database to the volatile table and delete the permanent table.

 

nickspencer
Obsidian | Level 7
@Tom
I don’t have privilege to create permanent table so I am trying to create volatile table and load data into it.
I know fastload and multiliad won’t work with volatile table so trying to use multistmt but I am getting an error

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

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