Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to suppress SQL in BTEQ export 1

Status
Not open for further replies.

rrrkrishnan

Programmer
Jan 9, 2003
107
US
How can I suppress the SQL stmt in the export file, when using BTEQ export. I am wanting a pipe delimited file as output. Can someone please help.

 
The SQL statement is not echoed to the file, you probably mean the column header. To get rid of it use (TITLE '')

.export report file = bla;
select
col1 || '|' || col2 || ',' || ... (TITLE '')
from tab;

Dieter
 
I was talking about the SQL stmt only and not the title. One of these set commands before the export cause the SQL to appear in the output. I have removed them now after seeing your post and the SQL doesn't appear, would you happen to know if it is the set format on that caused the problem.

Thanks.

.SET FORMAT ON;
.SET WIDTH 160;
.SET PAGELENGTH 32000;
.SET FOLDLINE ON 1,2;
.SET ECHOREQ OFF;

 
export the file as DATA file.
.EXPORT DATA file=filename

this should help you suppress the SQL in your reports.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top