Archives of the TeradataForum
Message Posted: Mon, 29 Dec 2008 @ 22:28:33 GMT
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
|