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 />

LOGOFF<br />

LOGOFF<br />

Purpose<br />

The LOGOFF command disconnects all active sessions and terminates execution of <strong>Teradata</strong><br />

T<strong>Pump</strong> on the client. An optional return code value may be specified as a conditional or<br />

arithmetic expression, evaluated to a signed integer.<br />

Syntax<br />

.LOGOFF<br />

retcode<br />

;<br />

3021A028<br />

where<br />

Syntax Element<br />

retcode<br />

Description<br />

Completion code returned to the client operating system<br />

If retcode is not specified, <strong>Teradata</strong> T<strong>Pump</strong> returns the value generated by the<br />

error condition.<br />

Usage Notes<br />

Example<br />

<strong>Teradata</strong> T<strong>Pump</strong> tracks the internal error condition code throughout the job and returns<br />

either 0 for complete success, 4 for warnings, 12 for fatal errors, and 16 for no sysprint. These<br />

values are the “error conditions”.<br />

To avoid ambiguity or conflict with standard <strong>Teradata</strong> T<strong>Pump</strong> completion codes, values<br />

greater than 20 should be used. <strong>Teradata</strong> T<strong>Pump</strong> returns the higher value between the value<br />

generated by the error condition and the return code specified in LOGOFF.<br />

If the LOGOFF command processes, this indicates that the highest return code reached was no<br />

more than 4 (warning). Any return code other than 0 or 4 would have terminated the job.<br />

LOGOFF is permitted at any point in the input script and logs off immediately.<br />

Suppose successful execution of a <strong>Teradata</strong> SQL statement (such as CREATE TABLE) is<br />

necessary to prepare for <strong>Teradata</strong> T<strong>Pump</strong>. If it is determined that the statement has failed with<br />

an unacceptable completion code, and if BADRC is set to &SYSRC after the failed SQL<br />

statement, the execution of <strong>Teradata</strong> T<strong>Pump</strong> can be terminated and the unacceptable code<br />

returned to the client by executing this command:<br />

.LOGOFF &BADRC;<br />

<strong>Teradata</strong> <strong>Parallel</strong> <strong>Data</strong> <strong>Pump</strong> Reference 165

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

Saved successfully!

Ooh no, something went wrong!