Thank you for the answer. I totally agree on the remark for the quotes, however it is a customer request I cannot change. They already have a query exporting the correct file using dbisql with the output statement, but unfortunately it cannot be part of a script.
Thank for your help
Kimon