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: 2433
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: 10256
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
This topic is locked: you cannot edit posts or make replies. Cobol GUI (like Editor) Kala Mainframe COBOL Programming 14 Wed May 10, 2017 12:30 pm
No new posts IMS T-Pipe queue counts in a COBOL Pr... Siva NKK Kothamasu IMS DB/DC 0 Tue May 09, 2017 6:31 pm
No new posts COBOL Code Parsers and Lineage Establ... balimanja COBOL Programming 2 Tue May 02, 2017 3:30 am
No new posts Cobol upgrade - source code missing f... gthmrj IBM Tools 1 Wed Apr 26, 2017 6:04 pm
No new posts Need help in REXX CALL program Raje1002 CLIST & REXX 5 Wed Apr 19, 2017 11:18 pm


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