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
1 REPLY 1
ChrisNZ
Tourmaline | Level 20

You might get better luck on a Teradata forum.

SAS just passes the command as is.

If one command works and the other does not, it looks like a Teradata issue.

 

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!

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.

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
  • 1 reply
  • 430 views
  • 0 likes
  • 2 in conversation