How to Use the > or >> Characters to Specify Output Files | Basic Teradata Query - Using the > or >> Characters to Specify Output Files - 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

Use the > and >> characters to specify output files as follows:

Redirection Operator Filename State Results
> (single character) New The new file is created as the standard output file.
> (single character) Existing The existing file is overwritten with new records.
>> (double characters) New The new file is created as the standard output file.
>> (double characters) Existing The new records are added to the end of the existing file.

For more information and examples of specifying a standard output file, see Using Scripts, Run Files, Macros, and Stored Procedures.