How to Specify an Export File in BTEQ | Basic Teradata Query - Specifying an Export File - 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

An export file is an output file that is used primarily for storing data received from the database in response to an SQL request.

The following table explains how to specify an export file:

System Type Export File
Mainframe-attached Use a z/OS DD statement to define an export file, then execute a BTEQ EXPORT command to open the file before entering an SQL request.

If an export file name is not defined, the default file name for the exported data is FILE ddname.

SYSPRINT is not a valid ddname for the BTEQ EXPORT command. Data cannot be exported to the SYSPRINT file.
Workstation-attached Export files do not have to be defined, but the EXPORT command must be used to open an export file before submitting an SQL request.