BTEQ executes commands and SQL statements in the same order they were entered. Each BTEQ command must be enclosed in an SQL ECHO statement. When the macro is executed, the database executes the SQL statements and returns the contents of the ECHO statements (the BTEQ commands) to BTEQ.
To avoid unexpected results, Teradata recommends echoing BTEQ commands only in Field Mode. No error messages are issued, and the echoed text might be dumped rather than executed.