Macro Example – Department Information Report | Basic Teradata Query - 17.00 - Macro Example – Department Information Report - Basic Teradata Query

Basic Teradata® Query Reference

prodname
Basic Teradata Query
vrm_release
17.00
created_date
June 2020
category
Programming Reference
featnum
B035-2414-220K

The following is an example of a macro to produce a report called Department Information:

CREATE MACRO deptdisplay AS (
ECHO '.SET SEPARATOR " | " ';
ECHO '.SET RTITLE "Department Information" ';
ECHO '.SET FORMAT ON';
SELECT * FROM department;);