suicide1405241470 0 Report post Posted September 11, 2004 Help needed: How to use DB2 Export command in JAVA so as to generate the output in a .xls sheet . We use the following in DB2 as - EXPORT TO C:\Book1.csv OF WSF <SELECT QUERY> . I need to know how this command can be used in java without doing it manually through FileOutputStream. Share this post Link to post Share on other sites