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

Basic Teradata® Query Reference

prodname
Basic Teradata Query
vrm_release
17.00
created_date
June 2020
category
Programming Reference
featnum
B035-2414-220K

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.