Example – Specifying Non-Operator-Attribute Job Variables - Parallel Transporter

Teradata® Parallel Transporter User Guide - 17.20

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
Lake
VMware
Product
Parallel Transporter
Release Number
17.20
Published
June 2022
Language
English (United States)
Last Update
2023-08-25
dita:mapPath
uzp1645128359760.ditamap
dita:ditavalPath
tvt1507315030722.ditaval
dita:id
B035-2445
Product Category
Teradata Tools and Utilities

Although the most common use of job variables is to specify the value for an operator attribute, job variables can also be used for object names and other job script parameters. In the following example, the values for @ConsumerOperator and @ProducerOperator can be assigned in the global job variables file, in a local job variables file, in a tbuild command, or in a job script using the SET directive.

 APPLY
      'INSERT INTO TABLE xyz (:col1, :col2);'
      TO OPERATOR ( @ConsumerOperator [1] )
      SELECT * FROM OPERATOR ( @ProducerOperator[2] );

Job variable can also be used in a quoted string for DML and DDL statements:

'INSERT INTO TABLE ' || @TargTable || ' (:col1, :col2, . . ., :coln);'