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-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

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