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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Exporting and Column names 1

Status
Not open for further replies.
Mar 31, 2003
22
EU
Hi,

Does anyone know how to include column names when exporting to a file .....

EG
EXPORT TO "C:\NOW.XLS" OF WSF MODIFIED BY 1 METHOD N (WO_DOCUMENT_NUMBER_ID) MESSAGES "X"
SELECT WO_DOCUMENT_NUMBER_ID FROM E6DW_DATA.PBVIEWS_SNAP_WORK_ORDERS ;

or

EXPORT TO "c:\now.csv" of del MESSAGES "X"
select WO_DOCUMENT_NUMBER_ID
from PBVIEWS_SNAP_WORK_ORDERS;

Both the above don't include the column names ...

Thanks
 
Jimmy,

not had time to try it, however the documentation I have in front of me says that if you specify the file as either WSF or IXF and omit the METHOD paramter, the column names in the table will be used.

Cheers
Greg
 
well, it works in WSF format, but then you would have an extra step to convert to ascii ...


Juliane
 
almost the same:

EXPORT TO "c:\now.wsf" of wsf MESSAGES "X"
select WO_DOCUMENT_NUMBER_ID
from PBVIEWS_SNAP_WORK_ORDERS;

when opening with excel or lotus123 the col names are there.

unfortunately, that is no ascii. I have not found an option in the documentation how to achieve it.




Juliane
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top