Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Mon, 29 Dec 2008 @ 22:28:33 GMT


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


Subj:   Re: How to Get Count(*) in UNIX Variable
 
From:   Curley, David

Does BTEQ have a quiet mode that suppresses output other than from SQL?

That way you could do something like this w/o grepping & cutting

     bteq -[switch for quiet mode]<my-bteq-out
     .logon dbc/dbc,dbcpassword;
     select 'COUNT01=' || trim( count(*))
         from db.tableone;
     select 'COUNT02=' || trim( count(*))
         from db.table2;
     .quit;
     ZZ
     . My-bteq-out

Or even

     COUNT01=`bteq -[switch for quiet mode]<


Dave



     
  <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