IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Updating the db2 records


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ramya_1714

New User


Joined: 22 Feb 2006
Posts: 2

PostPosted: Mon May 29, 2006 5:24 pm
Reply with quote

Hi all!

one of my job doing update the database, the total record is 3500, the job got abend after updating some of the records, how to restart to update the record, which got updated last, any log is there?pleas let me clear my doubt

Thanks
Ramya
Back to top
View user's profile Send private message
Gurmeet

New User


Joined: 22 Feb 2006
Posts: 46
Location: Pune

PostPosted: Tue May 30, 2006 4:42 pm
Reply with quote

Ramya,

Lets take following cases,

1. If you are trying to update all the 3500 records in one update query, then you cannot restart the job i.e. the updates happened before abend would be rolled back and you need to run the query again from the beginning.

2. If there are multiple queries then you need to fire commit statement after each update query to make the updates permanent. In this case you can restart you job from the query which abended.

Hope this clarifies your doubt.

Regards,
~Gurmeet
Back to top
View user's profile Send private message
stly
Warnings : 1

New User


Joined: 25 Jul 2005
Posts: 93

PostPosted: Tue May 30, 2006 7:34 pm
Reply with quote

please search in the forum regarding restart of cobol-db2 program.
iu iwll get the necessary info.
Back to top
View user's profile Send private message
d?b?2-fr

New User


Joined: 31 May 2006
Posts: 1

PostPosted: Wed May 31, 2006 3:19 am
Reply with quote

Hello Ramya,

as Gurmeet said, DB2 always lets the data in a consistency state, depending on how your application is written.
Is there a program or a simple SQL request running ?
Are there explicit COMMIT Sql statements ?
What was the SQL return code ?
Did your unit of work update any dataset during the same time ?
....

Many questions to answer to, before deciding to rerun the job or not .

Good luck.
Back to top
View user's profile Send private message
VITTAL

New User


Joined: 13 Mar 2006
Posts: 1

PostPosted: Wed May 31, 2006 10:19 pm
Reply with quote

PL EXPLAIN HOW I NEED TO CONVERT CHARACTER FORMAT INTO DATE FORMAT IN DB2
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Pulling a fixed number of records fro... DB2 2
No new posts Join multiple records using splice DFSORT/ICETOOL 5
No new posts EZT program to build a flat file with... All Other Mainframe Topics 9
No new posts JCL sortcard to print only the records DFSORT/ICETOOL 11
Search our Forums:

Back to Top