Printing the output of a db2 query on to an unix file

I want to print the output of a db2 query, on to an unix file in a manner that the columns are separated by 'commas'. Please help me out..thanx in advance

Hi,

did you have a look at:
http://www.dbforums.com/db2/1615830-export-csv-db2-8-1-os-390-a.html
CSV file with Headers
Export to CSV-File - DB2 Database

see ya
fra