I am able to generate a csv file in SQL Developer using the "set sqlformat csv" and alternatively using /csv/ in my query and spool off the results to a file. This works fine.
I now wanted to create a generic procedure to generate the csv from an Oracle package/procedure using a passed SQL query. Is it possible to use "set sqlformat csv" in this case? I know I can use the UTL_FILE utility to write the file but the missing part is the automatic CSV formatting. Thank in advance for your insight.