Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
Insert not performed when sqlcode = 0

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
Author Message
samedesh

New User


Joined: 22 May 2007
Posts: 10
Location: Pune

PostPosted: Sun Jun 15, 2008 1:55 pm    Post subject: Insert not performed when sqlcode = 0
Reply with quote

Hi ,
I have a problem while inserting a row in a table. After inserting a row sqlcode = 0 but after checking for that row in table row does not exists.
I am using smarttest to debug my code.
Please help :(

Thanks
Sameer
Back to top
View user's profile Send private message
References
dick scherrer

Global Moderator


Joined: 23 Nov 2006
Posts: 8761
Location: 221 B Baker St

PostPosted: Sun Jun 15, 2008 10:01 pm    Post subject:
Reply with quote

Hello,

It may be that the data is rolled back before you try to look at the inserted data.

For a simple test, issue a COMMIT immediately after the insert. Then, try the query and the data syhoule still be there.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1