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: 2429
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: 10231
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: 1534
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 JCL to Set Return code based on DB2 S... vinu78 DB2 17 Mon Mar 13, 2017 9:47 pm
No new posts SQL query not working in Cobol program. CuriousMainframer COBOL Programming 14 Wed Feb 22, 2017 5:56 pm
No new posts Execute TSO ACF commands from COBOL-I... supreethi.srid TSO/ISPF 0 Tue Feb 21, 2017 5:19 pm
No new posts Omegamon for DB2 query ashek15 DB2 0 Wed Feb 15, 2017 11:25 am
No new posts Query on DB2 WLM stored procedures ashek15 DB2 8 Sun Feb 12, 2017 11:13 pm


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