Quantcast
Channel: Teradata Downloads - Tools
Viewing all articles
Browse latest Browse all 870

Issue with muting column names in bteq export file

$
0
0

Hi,
 I am trying to export the 3 differrent select queries output to a single file (refer below)
bteq << EOB > log.txt 
.logon **********************
.export report file=result.txt
.set width 1000
.set TITLEDASHES ON;
--1st query
select metric, count(*) from tab1
-- 2nd query
select metric,count(*) from tab2;
--3rd query
select metric, count(*) from tab3;
.export reset
.quit;
EOB
 
The above script is printing the column names 3 times in the result.txt but i want to print only once. I tried multiple options to avoid printing the column names for the 2nd and 3rd query but i couldn't able to figure it out. Could someone please help me on this.
 
Thanks,

Tags: 
Forums: 

Viewing all articles
Browse latest Browse all 870

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>