0% found this document useful (0 votes)
265 views1 page

BTEQ Export Guide for IT Professionals

There are 4 export modes for moving data out of Teradata: REPORT, DATA, INDICDATA, and DIF. REPORT is human readable, DATA and INDICDATA are machine formats where INDICDATA includes null indicators, and DIF is for transferring data to other applications. When exporting to the mainframe the record length must be manually calculated and the LIMIT option can control the number of records for testing. This document provides an example of exporting data from the ITEMPPI table to a pipe delimited file with a header row of column names and trailer row showing the record count.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
265 views1 page

BTEQ Export Guide for IT Professionals

There are 4 export modes for moving data out of Teradata: REPORT, DATA, INDICDATA, and DIF. REPORT is human readable, DATA and INDICDATA are machine formats where INDICDATA includes null indicators, and DIF is for transferring data to other applications. When exporting to the mainframe the record length must be manually calculated and the LIMIT option can control the number of records for testing. This document provides an example of exporting data from the ITEMPPI table to a pipe delimited file with a header row of column names and trailer row showing the record count.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 1

BTEQ export

1.) 4 modes
REPORT (field mode)- human readable format, page formatting etc.,
DATA (record mode)
- Machine format (native format) Null will be defaulted to
Zero/Spaces
INDICDATA (Indicator mode) Same as DATA format additionally holds the null Indicator
(one bit per column).
DIF data interchange format to excel, FoxPro, lotus etc.
2.) Mainframe
EXPORT Mode DDNAME =
Manually calculate the LRECL correctly for the export file.
3.) LIMIT option to control the number of records output to the file( helps during
Testing)
Extracting table data as pipe delimited with a header and a trailer.
/* run the login file */
.RUN FILE C:\TeradataWorks\dbc_logon.txt
.SET FORMAT OFF
.SET TITLEDASHES OFF
.SET SEPARATOR '|'
.SHOW CONTROLS
DATABASE retail;
.EXPORT REPORT FILE = C:\TeradataWorks\bteq_export_itemppi_TBL.txt;
SELECT * FROM ITEMPPI
;SELECT COUNT(*) (TITLE '') FROM ITEMPPI;
.EXPORT RESET
.QUIT ERRORCODE

You might also like