John Appleby wrote:
You could use the EXPORT command and use a transient table with a single line to write a CSV? You can call EXPORT from SQLScript, right?
Have you tried that? I couldn't get EXPORT to work from SQLScript. I took a sample that works fine from the SQL Console and when I put it in SQLScript Procedure it produces a syntax error. That would be quite the work around, but it doesn't appear the syntax is supported from SQLScript.