Running the Macro - Basic Teradata Query

Basic Teradata Query Reference

Product
Basic Teradata Query
Release Number
16.20
Published
October 2018
Language
English (United States)
Last Update
2020-02-20
dita:mapPath
kil1527114222313.ditamap
dita:ditavalPath
Audience_PDF_include.ditaval
dita:id
B035-2414
lifecycle
previous
Product Category
Teradata Tools and Utilities

When the macro is created and the export file defined, the following script exports the data returned as a report and executes the macro:

.LOGON tdpid/userid, password
.EXPORT REPORT DDNAME=report
EXECUTE deptdisplay;
.SET FORMAT OFF
.EXPORT RESET
.LOGOFF

Execute the z/OS JCL (from outside of BTEQ) to submit the script and execute the macro.