Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Tue, 06 Mar 2001 @ 15:55:50 GMT


     
  <Prev Next>   <<First <Prev
Next>
Last>>
 


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 ;



     
  <Prev Next>   <<First <Prev
Next>
Last>>
 
 
 
 
 
 
 
 
 
  
  Top Home Privacy Feedback  
 
 
Copyright for the TeradataForum (TDATA-L), Manta BlueSky    
Copyright 2016 - All Rights Reserved    
Last Modified: 27 Dec 2016