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

Insert query in my COBOL-DB2 program


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

New User


Joined: 01 Oct 2012
Posts: 1
Location: India

PostPosted: Mon Apr 22, 2013 10:48 am
Reply with quote

I am getting a below error while runnig a insert query in my COBOL-DB2 program. Kindly Help .

F8071000 COMPILED ON 04/21/13 21.50.33

5000-OPEN-FILES
2100-OPEN-CURSOR
2200-FETCH-CURSOR
000000002
2013-04-08-02.53.46.675781
2300-INS-PRO-TABLE
9000-ABEND
*********** ABEND INFORMATION ************

-------- DB2 ----------

SQLCODE => 000000018}
SQLSTATE => 22007
ABEND MESSAGE => 2300-INS-PRO-TABLE
Back to top
View user's profile Send private message
Bang_1

New User


Joined: 08 May 2009
Posts: 39
Location: Bangalore

PostPosted: Mon Apr 22, 2013 11:30 am
Reply with quote

Hi prakharrules,
Please post your INSERT query from COBOL-DB2 program
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Mon Apr 22, 2013 11:35 am
Reply with quote

Looks like a DATETIME or TIMESTAMP error.
Back to top
View user's profile Send private message
Bang_1

New User


Joined: 08 May 2009
Posts: 39
Location: Bangalore

PostPosted: Mon Apr 22, 2013 11:37 am
Reply with quote

Take a look at the post -
http://www.ibmmainframes.com/about33979.html
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon Apr 22, 2013 11:43 am
Reply with quote

the sql return code 18} is a -180

faster to look Yourself at the DB2 manuals

( or search the forum for -180 )
Back to top
View user's profile Send private message
Pandora-Box

Global Moderator


Joined: 07 Sep 2006
Posts: 1592
Location: Andromeda Galaxy

PostPosted: Mon Apr 22, 2013 12:22 pm
Reply with quote

Better display the Timestamp value before insert and after fetch ..

May be you might not have populated to the insert host variable

Adding displays will help to resolve it yourself icon_smile.gif
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 Replace each space in cobol string wi... COBOL Programming 3
No new posts Using API Gateway from CICS program CICS 0
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
Search our Forums:

Back to Top