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
 

 

Insert query in my COBOL-DB2 program

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
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    Post subject: Insert query in my COBOL-DB2 program
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    Post subject:
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: 2435
Location: Netherlands, Amstelveen

PostPosted: Mon Apr 22, 2013 11:35 am    Post subject: Reply to: Please help me with this.
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    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10274
Location: italy

PostPosted: Mon Apr 22, 2013 11:43 am    Post subject: Reply to: Please help me with this.
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

Moderator


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

PostPosted: Mon Apr 22, 2013 12:22 pm    Post subject:
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    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 XML Parse for COBOL 5.2 Bhanu Praveen COBOL Programming 1 Sat Jul 08, 2017 8:58 pm
No new posts Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm
No new posts pre-compiler for program in an HFS Pedro DB2 0 Fri Jun 23, 2017 11:13 pm
No new posts Dynamic output file creation in cobol... smileheal COBOL Programming 7 Thu Jun 15, 2017 10:53 pm
No new posts Search utility(3.14) using JCl and Cobol RKS3 COBOL Programming 12 Sat Jun 10, 2017 10:24 pm


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