SQLFetch reported: SQLSTATE = 22018: Native Error Code 802

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
cipsy
Participant
Posts: 14
Joined: Wed May 02, 2007 4:59 am

SQLFetch reported: SQLSTATE = 22018: Native Error Code 802

Post by cipsy »

Hi,

I want read data ODBC source (uses DB2 on AS400) and write to Oracle. Job is simple but job aborted. I see this error messages


AS400,0: ODBC function "SQLFetch" reported: SQLSTATE = 22018: Native Error Code = -802: Msg = [IBM(DataDirect OEM)][ODBC DB2 Wire Protocol driver][UDB DB2 for iSeries and AS/400]EXCEPTION ERROR 0 OCCURRED DURING *N OPERATION. 6
ODBC function "SQLFetch" reported: SQLSTATE = 22018: Native Error Code = -802: Msg = [IBM(DataDirect OEM)][ODBC DB2 Wire Protocol driver][UDB DB2 for iSeries and AS/400]EXCEPTION ERROR 0 OCCURRED DURING *N .........

Thanks your advice
Akin AYDIN
Business Intelligence Consultant
jhmckeever
Premium Member
Premium Member
Posts: 301
Joined: Thu Jul 14, 2005 10:27 am
Location: Melbourne, Australia
Contact:

Post by jhmckeever »

http://lmgtfy.com/?q=SQLSTATE+%3D+22018

:-)

Look like you're passing a string to something that doesn't accept a string.
<b>John McKeever</b>
Data Migrators
<b><a href="https://www.mettleci.com">MettleCI</a> - DevOps for DataStage</b>
<a href="http://www.datamigrators.com/"><img src="https://www.datamigrators.com/assets/im ... l.png"></a>
cipsy
Participant
Posts: 14
Joined: Wed May 02, 2007 4:59 am

Post by cipsy »

Thanks your answer. :) but job is working alone.
When job scheduled i see this error messages.
Akin AYDIN
Business Intelligence Consultant
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Still... are you using job parameters in your ODBC source?
-craig

"You can never have too many knives" -- Logan Nine Fingers
cipsy
Participant
Posts: 14
Joined: Wed May 02, 2007 4:59 am

Post by cipsy »

This problem is solved.
I dont know why reason but we change the sql.

I find the a line in table1 (have null value and &) . but sql isnt came this line.

example
select a.col1,a.col2,a.col3
from table1 a, table2 b
where a.id_column = b.id_column

a.id_column not joined b.id_column

delete it this line an problem solved. Maybe driver problem maybe line contains a different character.


Thanks ypur helping.
Akin AYDIN
Business Intelligence Consultant
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

I've seen many times where whitespace causes odd issues. The stage doesn't need any kind of formatting in the SQL it runs so at the first sign of trouble first thing I do is remove all of the "pretty print" people-centric formatting... tabs, returns, blank lines, comments, etc.

Can't tell you how many times that has helped. In multiple tools.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply