Your query is being pushed into the remote database. So the data references need to point to data in that database.
Teradata is not going to recognize any SAS librefs or SAS datasets.
Tutorial on turning a program into a macro
https://github.com/statgeek/SAS-Tutorials/blob/master/Turning%20a%20program%20into%20a%20macro.md
@nid197 wrote:
Hi Tom,
Yes the above query gave me the results but i am just looking an efficient and less time consuming way to do it..i have to write the same query for all the other tables.this makes the program quite lengthy.can i do it using macros or so any loops.i believe we cant update multiple teradata tables at the same time.and even if we can the variables to be updated in those tables are not same they are different.some tables have 5 variable to be updated some just have 1.
I hope you get my question now.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
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!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
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.
Ready to level-up your skills? Choose your own adventure.