" Not sure what the length of the field names has to do with the SQL
statement length for a statement used to generate a column heading
row for CSV, but..."
When building a list of field names, SQL stmts can get lengthy. The
longer each field name, the longer the SQL stmt.
Message . . . . : 11600 - RJSIMAGE/DOCSQL SQLSTM('insert into
qtemp/WORKHEADER values ( ''"Cust0001-Name","Cust0001-address-line1
"," Cust0001-address-line2","Cust0001-address-line3","CUST0001-CITY,"," ...