Hi Folks,
I'm having troubles while loading the data from a quoted string into IQ, the load fails with the error even when I specify QUOTES ON option.
Could not execute statement.
Non-space text found after ending quote character for an enclosed field.
-- (db_RecScanner.cxx 2246)
SQLCODE=-1005014, ODBC 3 State="HY000"
Can some one pls suggest ?
For example, data file (
"empid", "empname"
"1", "ABC"
Table def:
create table example(
empid int,
empname varchar(8)
)
SET TEMPORARY OPTION ON_ERROR=EXIT;
SET TEMPORARY OPTION DATE_ORDER='MDY';
set temporary option ESCAPE_CHARACTER='ON';
LOAD TABLE t_stg_ifi_patent_class
(
empid ',' ,
empname '\n' )
FROM 'testfile'
SKIP 1
WITH CHECKPOINT ON
BLOCK SIZE 50000
NOTIFY 1000
ESCAPES OFF
QUOTES ON
ON FILE ERROR ROLLBACK