How to Specify an Export File in BTEQ | Basic Teradata Query - Specifying an Export File - Basic Teradata Query

Basic Teradata® Query Reference

Product
Basic Teradata Query
Release Number
17.00
Published
December 2020
Language
English (United States)
Last Update
2020-12-12
dita:mapPath
zqt1544831938740.ditamap
dita:ditavalPath
obe1474387269547.ditaval
dita:id
B035-2414
lifecycle
previous
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.