BTEQ Command Elements | Basic Teradata Query - BTEQ Command Elements - Basic Teradata Query

Basic Teradata® Query Reference - 20.00

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
Lake
VMware
Product
Basic Teradata Query
Release Number
20.00
Published
October 2023
ft:locale
en-US
ft:lastEdition
2025-04-02
dita:mapPath
gxl1691484661681.ditamap
dita:ditavalPath
obe1474387269547.ditaval
dita:id
psp1479308573013
Product Category
Teradata Tools and Utilities

BTEQ commands consist of several elements, some of which are required and some of which are optional. The following table describes the elements of BTEQ command syntax, using the FORMAT command example discussed in General Rules.

.SET FORMAT ON;
BTEQ Command Elements 
Command Element Syntax Example Required or Optional Purpose
BTEQ command identifier . (dot character) Optional, but recommended Identifies the beginning of a BTEQ command and distinguishes it from SQL
Keyword SET Optional for many commands Identifies that the command sets a processing condition
Command keyword FORMAT Required Specifies the function
Options ON Required for some commands; otherwise, optional Specifies processing condition
Variable text Required for some commands; otherwise, optional Specifies a value or entity for processing
BTEQ command terminator ; (semicolon character) Required for some commands; otherwise, optional Identifies the end of the BTEQ command