Macro Example – Department Information Report

Basic Teradata Query Reference

brand
Teradata Tools and Utilities
prodname
Basic Teradata Query
vrm_release
16.20
category
Programming Reference
featnum
B035-2414-108K

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;);