Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Wed, 11 May 2011 @ 13:20:01 GMT


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


Subj:   Re: Read a file inside BTEQ
 
From:   Leslie, Quincy

If you are willing to use a Unix shell script in your process, then a "here doc" SQL statement can be piped to "bteq". Within the bteq, a final select statement can be executed and those fields selected can be piped to another process, e.g. an awk statement for specific formatting, including populating of one or more variables. P.s., the final select statement output is most easily read by another process, if the output fields are concatenated and pipe delimited.



     
  <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