Archives of the TeradataForum
Message Posted: Tue, 06 Mar 2001 @ 15:55:50 GMT
Subj: | | Re: FASTEXPORT OUTPUT FORMATTING |
|
From: | | Craig Chvatal |
Here's an example of a solution to produce what you are looking for. The only caveat is the last column has spaces before the CR/LF.
.logtable x ;
.logon system/username,password ;
.BEGIN EXPORT SESSIONS 20 ;
.EXPORT OUTFILE c:\temp\testfile.txt FORMAT TEXT MODE RECORD;
SELECT CAST(CAST(ctrl_id AS varchar(10)) || '|'
|| CAST(boundary_name AS varchar(10)) || '|'
|| CAST(engine_id AS varchar(20)) || '|'
|| CAST(src_dttm AS varchar(25)) || '|'
|| CAST(sync_ind AS varchar(1)) AS CHAR(66))
FROM buckets_cal ;
.END EXPORT ;
.logoff ;
|