BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
Ronein
Onyx | Level 15
In your code should use Tera language or sas language?
LinusH
Tourmaline | Level 20
All syntax within an EXCUTE or ..FROM CONNECTION TO blocks need to be in RDBMS specific.
Anything outside these blocks should be SAS PROC SQL syntax.
Data never sleeps
LinusH
Tourmaline | Level 20
I suggest that you read through the documentation for a better understanding:
https://documentation.sas.com/doc/en/lrcon/9.4/n1kbstf7vw0qcjn1ibfc8c78a9lc.htm
Data never sleeps
Ronein
Onyx | Level 15
So use DBMS SQL syntax
Tom
Super User Tom
Super User

@Ronein wrote:
In your code should use Tera language or sas language?

It was already clear which parts are using SAS syntax and which parts are using Teradata syntax.

libname tera teradata server=dwprod schema=DWP_vall authdomain=TeraDataAuth;
proc sql;
connect using tera;
execute by tera 
( ... teradata statement here ...
);
create table want as select * from connection to tera
( .. teradata query here ...
);
quit;

The code shown is all SAS code. The parts with the ... elipses ... are where you place the Teradata code.  

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

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
  • 19 replies
  • 16944 views
  • 8 likes
  • 4 in conversation