IQ Load table command fails while loading into data from a quoted strig

390 views
Skip to first unread message

Karthik

unread,
Feb 16, 2017, 1:54:19 PM2/16/17
to iqug
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

Mark Mumy

unread,
Feb 16, 2017, 2:11:14 PM2/16/17
to iq...@googlegroups.com
Which version of IQ?

I’m running IQ 16 SP10 PL03 and it works without issue.  Is this IQ 15?  I ask because the BLOCK SIZE is no longer valid syntax. 

Mark

Karthik

unread,
Feb 16, 2017, 2:28:34 PM2/16/17
to iqug
Hi Mark, 

Here is the sybase verison, Sybase IQ/15.4.0.3027/130221/P/ESD 3/Enterprise Linux64 - x86_64 - 2.6.18-194.el5/64bit/2013-02-21 10:52:34

So are you saying the above syntax is correct, if so why does my process fail, I dont understand :(

Mark Mumy

unread,
Feb 16, 2017, 2:56:03 PM2/16/17
to iq...@googlegroups.com

It is likely a bug that was patched in the past 4+ years.  Considering that IQ 15.4 is no longer supported, I would strongly recommend working a plan to move to IQ 16 SP11 soon.


Per the PAM, it was confirmed as 2016-11-30.



Mark



-- 
You received this message because you are subscribed to the Google Groups "iqug" group.
To unsubscribe from this group and stop receiving emails from it, send an email to iqug+uns...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Karthik

unread,
Feb 16, 2017, 3:04:53 PM2/16/17
to iqug
thanks for the info, does it mean there is no workaround for me ? so I have to strip off quotes from the strings?

Mark Mumy

unread,
Feb 16, 2017, 3:06:46 PM2/16/17
to iq...@googlegroups.com
I have no idea if there’s a workaround or not.  I don’t have IQ 15 installed anywhere to test.  You could try opening a case to see if support has a known workaround other than upgrading.

Mark

Karthik

unread,
Feb 16, 2017, 3:39:18 PM2/16/17
to iqug
Thank you so much Mark, will raise a case with Sybase
Reply all
Reply to author
Forward
0 new messages