Macro Example |Run the Macro | Basic Teradata Query - 17.00 - Running the Macro - 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

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.