Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 2459
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

Senior Member


Joined: 14 Mar 2007
Posts: 10495
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: 1561
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 COBOL - JSON GENERATE husni1972 COBOL Programming 1 Fri Aug 17, 2018 3:29 am
No new posts Send data from a CICS TS program to M... spiThingy CICS 2 Wed Aug 08, 2018 8:58 am
No new posts Error while initiation CICS program f... Ashishpanpaliya CICS 3 Mon Jul 16, 2018 5:12 pm
No new posts Query for fetching matching data in t... Poha Eater DB2 10 Mon Jul 09, 2018 6:06 pm
No new posts SQL IN predicate using COBOL table jerryte DB2 16 Fri Jun 29, 2018 10:30 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us