BTEQ - ERROROUT in Teradata

BTEQ routes the standard error stream and the standard output stream to two files.

Syntax:
.SET ERROROUT STDOUT;
.SET ERROROUT STDERR;


STDOUT - Channel attached systems
STDERR - Network attached sysrems

Example:

BTEQ -- Enter your Teradata SQL request or BTEQ command:
.set errorout stderr
.set errorout stderr
*** Error messages now directed to STDERR.