It is requested to export data from ASE in a csv file having all the data quoted. In Interactive SQL GUI we can use this
OUTPUT TO 'C:\tmp\data.csv' FORMAT ASCII
DELIMITED BY ',' QUOTE '''' ALL ENCODING cp1253
GO
and it returns the desired result. However we cannot create a script executed from command line that produces this file, because the GUI dbisql cannot take any arguments in order to connect to an ASE instance and execute an SQL file and the command line isql cannot accept the output command. I think we cannot achieve this using only the ASE client tools
A supposed solution could be to create a string for each row and export it using bcp or even isql. I would prefer to avoid such an approach.
Thank you in advance