BookmarkSubscribeRSS Feed
Marcus_Peters
Fluorite | Level 6

Hi everyone

I've got some code written in SAS EG to connect to Teradata using PROC SQL and then execute a query via SQL Pass-Through. I am trying to make Teradata run a Replace View statement, and although I don't get an error in the SAS log my code is not executing! I have tested this by amending the view directly in Teradata and then re-running my SAS code (which should reverse the changes I made in Teradata), but it doesn't run.

If anyone has any suggestions I would be grateful - this is really bugging me!

Thanks

Marcus

2 REPLIES 2
AhmedAl_Attar
Rhodochrosite | Level 12

Check this paper for some clues

https://www.lexjansen.com/pharmasug/2017/BB/PharmaSUG-2017-BB17.pdf

use this SAS option

OPTIONS DEBUG=DBMS_SELECT SASTRACE=',,,d' SASTRACELOC=SASLOG NOSTSUFFIX;

Make sure your SAS connection credentials are identical to the credentials you used when you logged into Teradata outside of SAS.  

 

Hope this hellps,

Ahmed

 

Tom
Super User Tom
Super User

Are you saying you ran a REPLACE VIEW .... statement and the view was not replaced (or created if it wasn't there).

Are you sure you are defining the view in the same place with both methods?

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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.

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