Вы находитесь на странице: 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

Вам также может понравиться