IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

SQLCODE : -311 ......


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
vijayakumar.yellala

New User


Joined: 19 Apr 2006
Posts: 63
Location: Chennai

PostPosted: Tue Aug 24, 2010 4:03 pm
Reply with quote

Hi,

In my program we are inserting data to the new table, but while execute the program, job is abending with sql code : -311.

I have checked all the host filed lengths are greater than the source fields


Regards
Vjay
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Tue Aug 24, 2010 5:28 pm
Reply with quote

the error message provides a position number of the host field causing the error.
suggest you read the explaination for a -311 again,
since you apparently did not understand the explanation.

hint:
Quote:
I have checked all the host filed lengths are greater than the source fields


considering the explanation provided in the manual,
this is an idiotic comment to make.

beside, what 'source fields' are you talking about? DB2 columns?
Back to top
View user's profile Send private message
GuyC

Senior Member


Joined: 11 Aug 2009
Posts: 1281
Location: Belgium

PostPosted: Tue Aug 24, 2010 6:56 pm
Reply with quote

if we're talking char() or varchar() a common cause is the confusion between UNICODE and EBCDIC
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts SQLCODE=-311 in Cobol SP-DB2. COBOL Programming 2
No new posts SQLCODE = -122 while using the scalar... DB2 4
No new posts SQLCODE = -16002 when using XMLEXISTS DB2 1
No new posts Is SQLCODE -811 possible while fetchi... DB2 1
No new posts SQLCODE=-204 SQLSTATE=42704 DB2 4
Search our Forums:

Back to Top