Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Getting an sqlcode of +354

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
Prajesh_v_p

Active User


Joined: 24 May 2006
Posts: 133
Location: India

PostPosted: Fri Aug 22, 2008 7:36 pm    Post subject: Getting an sqlcode of +354
Reply with quote

Hi all,

I am doing an muti row fetch from a table. But I am getting an sqlcode of +354. I have done cross checking of the table mapping and DCLGEN array mapping and it is exactly same except for a VARCHAR field, for which we have to add the lenth field also, as show below.
Code:
 05  MY-FIELD           OCCURS 100 TIMES. 
   49  MY-FIELD-LENGTH         PIC S9(04) COMP.
   49  MY-FIELD-DATA            PIC  X(255).


Variable MY-FIELD is used in the fetch clause. Table column is declared as VARCHAR 255. Can anybody share some info, if you have come across any similar situations?

If we need to do 'GET DIAGNOSTICS', Can any body give me some ref link for the same.

Thanks in advance!
Back to top
View user's profile Send private message

dbzTHEdinosauer

Global Moderator


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

PostPosted: Fri Aug 22, 2008 8:39 pm    Post subject:
Reply with quote

have you investigated SQLERRCD(3)?
Back to top
View user's profile Send private message
rpuhlman

New User


Joined: 11 Jun 2007
Posts: 80
Location: Columbus, Ohio

PostPosted: Fri Aug 22, 2008 10:22 pm    Post subject:
Reply with quote

Prajesh,

Here is a start:

http://publibfp.boulder.ibm.com/cgi-bin/bookmgr/BOOKS/dsnc1j12/2.2.26?SHELF=&DT=20070111144235&CASE=

Rick
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts DB2 SQL Error: SQLCODE=-440, SQLSTATE... kishpra DB2 1 Sat Feb 18, 2017 2:31 am
No new posts SQLCODE-000000080N priya91 DB2 1 Mon Feb 01, 2016 4:35 pm
No new posts Need to understand SQLCODE = 12 rohanthengal DB2 3 Thu Nov 05, 2015 11:22 am
No new posts SQLCODE -922 in Batch-Cics program tr... kishpra CICS 2 Thu Sep 10, 2015 12:36 pm
No new posts SQLCODE -450 for stored procedure spoorni DB2 3 Fri Jan 16, 2015 2:45 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us