Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Wed, 19 May 2010 @ 09:06:42 GMT


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


Subj:   Fast export issue: log file issue
 
From:   Prasad Kavil Kambrath

Experts,

I am beginner in Teradata, still learning

I am running a fast export script on a table which has around 2 million records. Also the table has 100 columns and I need all of them. The script is given below .

I am having one issue and one question.

1. I am running the script and log file of the script contains all the selected records line by line and as a result log file is coming as huge.

Please help

2. Whether I will be able to write all those 100 columns to the file..

     fexp <;
     .run file ;
     .BEGIN EXPORT SESSIONS 2;

     SELECT
      TRIM (BOTH FROM CAST ( COALESCE(column1,' ')
                  as CHAR (2)))
     ||'|'|| (TRIM (BOTH FROM CAST (column2 as CHAR (7)))) '|'|| (TRIM (BOTH
     ||FROM CAST (column3 as CHAR (10)))) '|'|| (TRIM (BOTH FROM CAST
     ||(column4 as CHAR (12)))) '|'|| (TRIM (BOTH FROM CAST (column5 as CHAR
     ||(2)))) '|'|| (TRIM (BOTH FROM CAST (column6 as CHAR (10))))
       .

     From Table1.

     .EXPORT OUTFILE  
         MODE RECORD FORMAT TEXT;


     .END EXPORT;

     .LOGOFF;
     .QUIT;
     EOF

Thanks

Prasad K K



     
  <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