Try something like this (untested):
bteq <my-bteq-out .logon ...; select 'COUNT01', count(*) from table01; select 'COUNT02', count(*) from table02; .quit; ZZ # Store in shell variables COUNT1=`grep '^COUNT01' my-bteq-out | cut -c2` COUNT2=`grep '^COUNT02' my-bteq-out | cut -c2`
Attachments
Library
Quick Reference
Archives
Sample Index
2008 Indexes