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!

Exporting Report In BTEQ

Status
Not open for further replies.

milulove04

Programmer
Nov 26, 2007
3
Hi all,

I have a problem when export report in bteq.
This is my code for exporting:

.LOGON
.EXPORT report file=D:\temp.dat;
SET FORMAT OFF;
SET ECHOREQ OFF;
SET TITLEDASHES OFF;
SET HEADING '';
SET RTITLE '';
SET FOOTING '';
SELECT (COUNTRY_CD) || ';' ||(COUNTRY_NAME) ||';' ||(REGION_NAME) ||';' ||(CONTINENT_NAME)
FROM Athena_STG_VOL.COUNTRY_CODES
ORDER BY COUNTRY_CD;
.EXPORT RESET
.LOGOFF
.EXIT

After running this script, I have below export file:

((((((Country_cd||';')||Country_name)||';')||Region_name)||'
AD;Andorra;WESTERN EUROPE;Asia
AE;United Arab Emirates;MIDDLE EAST;Asia
AF;Afghanistan;ASIA;Asia
AG;Antigua and Barbuda;CARIBBEAN;North America

I don't want to appare first line "((((((Country_cd||';')||Country_name)||';')||Region_name)||'" in my file.

Pls help me.

Thanks,
Anthony
 
Just add an empty title to your result column.

SELECT (COUNTRY_CD) || ... ||(CONTINENT_NAME) (TITLE '')
FROM ...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top