See “EXEC” in Teradata Vantage™ - SQL Data Manipulation Language, B035-1146 for information about how to execute a macro.
If an SQL procedure would better meet your needs for a specific application than a macro, see the following references:
- CREATE PROCEDURE and REPLACE PROCEDURE (External Form)
- CREATE PROCEDURE and REPLACE PROCEDURE (SQL Form)
- Teradata Vantage™ - SQL Stored Procedures and Embedded SQL , B035-1148