BookmarkSubscribeRSS Feed
Venky22
Calcite | Level 5

Hi All,

 

Trying to execute the teradata stored procedure in sas.

 

libname a teradata user =xx pwd =xxxx server=xxxx db=MNO connection=shared;
proc sql;
connect using a;
execute (call MNO.procedure('202010',0);) by a;
quit;

I've followed changes as shown below

ODBC ADministrator --> Configure --> Options --> Session Mode (Selected ANSI)

 

Getting below error:

Error:Teradata execute:Invlid Session mode for Procedure execution.

 

Can some help me to resolve this issue.

 

Thanks & Regards,

VNKY

 

 

3 REPLIES 3
LinusH
Tourmaline | Level 20

Just a hunch, does the procedure "stream" output?

If so, that will probably clash with how SAS EXECUTE blocks works.

Data never sleeps
Venky22
Calcite | Level 5

What procedure does is :

It cretes tables with 202010 data and eports to an excel file. After the data is being populated Business Objects will use those tables to generate the report.

Currently  we are manually triggering each procedure(there are around 20 procedures) and create tables. 

SASKiwi
PROC Star

There are two modes you can specify with Teradata: ANSI (default) and TERADATA. I suggest you try MODE = TERADATA on your LIBNAME statement: https://documentation.sas.com/?cdcId=pgmsascdc&cdcVersion=9.4_3.5&docsetId=acreldb&docsetTarget=n0tf...

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
  • 3 replies
  • 1036 views
  • 0 likes
  • 3 in conversation