25.09.2015 Views

Teradata Parallel Data Pump

Teradata Parallel Data Pump Reference - Teradata Developer ...

Teradata Parallel Data Pump Reference - Teradata Developer ...

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 3: <strong>Teradata</strong> T<strong>Pump</strong> Commands<br />

SET<br />

SET<br />

Purpose<br />

The SET command assigns a data type and a value to a utility variable. Variables need not be<br />

declared in advance to be the object of the SET command. If a variable does not already exist,<br />

the SET command creates it.<br />

The SET command also dynamically changes the data type to that of the assigned value if it<br />

has already been defined. Variables used to the right of TO in the expression must have already<br />

been defined.<br />

Syntax<br />

.SET<br />

var<br />

TO<br />

expression<br />

;<br />

3021A033<br />

where<br />

Syntax Element<br />

var<br />

expression<br />

Description<br />

Name of the utility variable which is set to the evaluated expression<br />

following it<br />

Value and data type to which the utility variable is to be set<br />

Usage Notes<br />

The utility variable can be substituted wherever substitution is allowed.<br />

If the expression evaluates to a numeric value, the symbol is assigned an integer value, as in:<br />

.SET FOONUM TO -151 ;<br />

If the expression is a quoted string, the symbol is assigned a string value, as in:<br />

.SET FOOCHAR TO '-151' ;<br />

The minimum and maximum limits for Floating Point data types are as follows:<br />

4.0E-75

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!