I am trying to create an extract file where the first line confains the column header enclosed in double quotes and delimited by commas. I am receiving a Cast error when I try to insert the double quote into the file.
What am I missing?
Code:
dcl-c $quote ('"'); dcl-c $delim (','); dcl-s exstr char(500); exstr = $quote + field1 + $quote + $delim + $quote + field2 + $quote; exec sql insert into flatfilepf values :exstr;
Comment