Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Wed, 01 Oct 2003 @ 15:14:52 GMT


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


Subj:   Importing file into bteq query
 
From:   Ferry, Craig

I have several load files which utilize bteq. In these files I create temp tables, perm tables, etc. These tables have the same column attributes, but different table names. Is there a way that I can create one file that has the column attributes and read it in to create my table? This way I only have to maintain one file.

For example the following would be in my normal bteq script.

bteq << EOF
.logon teradata/${TTID},${TTPSWD};

CREATE MULTISET TABLE dssbatch.craig_test ,NO FALLBACK ,
     NO BEFORE JOURNAL,
          NO AFTER JOURNAL
               (

At this point, I would want to read in a file that has all my columns.

Any ideas would be greatly appreciated.

Craig

_____

www.wescodist.com
Craig Ferry
Database and Unix Administrator
WESCO Distribution, Inc.



     
  <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: 15 Jun 2023