Executing Macros - Basic Teradata Query

Basic Teradata Query Reference

Product
Basic Teradata Query
Release Number
16.00
Published
November 2016
Language
English (United States)
Last Update
2018-04-25
dita:mapPath
hyz1479325149183.ditamap
dita:ditavalPath
Audience_PDF_include.ditaval
dita:id
B035-2414
lifecycle
previous
Product Category
Teradata Tools and Utilities

Macros can be executed either interactively, or included in BTEQ scripts or input stream files.

To execute a macro interactively, use the Teradata SQL EXECUTE statement:

EXECUTE macroname;

To execute the macro deptdisplay, enter:

EXECUTE deptdisplay;