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

How to find updated Records from a table


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

New User


Joined: 10 Dec 2010
Posts: 43
Location: hyderabad

PostPosted: Thu Apr 28, 2011 2:49 pm
Reply with quote

Hi All,

I have a Question? Hope this will be resolve surely. Scenario is as follows........

I submitted a Job where " I am updating Records of a Table(DB2) after 100 th Record, my job got abend, now my question is how to start my job where i got abend "


Thanks in Advance icon_biggrin.gif
Back to top
View user's profile Send private message
prino

Senior Member


Joined: 07 Feb 2009
Posts: 1306
Location: Vilnius, Lithuania

PostPosted: Thu Apr 28, 2011 3:40 pm
Reply with quote

Mahi_e wrote:
I have a Question? Hope this will be resolve surely. Scenario is as follows........

I submitted a Job where " I am updating Records of a Table(DB2) after 100 th Record, my job got abend, now my question is how to start my job where i got abend "

If your program has not issued a commit, DB2 will rollback the changes, if not, you are up to your nostrils in the brown stuff.

Restartability is something you should have thought of in advance, not as an afterthought.
Back to top
View user's profile Send private message
Mahi_e

New User


Joined: 10 Dec 2010
Posts: 43
Location: hyderabad

PostPosted: Thu Apr 28, 2011 5:22 pm
Reply with quote

Thanks for ur answer.

suppose in my logic , i will use commit for every 60 records for success running of job.

in that case if i would face job abend, then ? what should i do............?
i dont know at what record should i get abend.
Back to top
View user's profile Send private message
prino

Senior Member


Joined: 07 Feb 2009
Posts: 1306
Location: Vilnius, Lithuania

PostPosted: Thu Apr 28, 2011 5:43 pm
Reply with quote

Mahi_e wrote:
Thanks for ur answer.

Cn y tll m wht th wrd "ur" mns?

Mahi_e wrote:
suppose in my logic , i will use commit for every 60 records for success running of job.

in that case if i would face job abend, then ? what should i do............?
i dont know at what record should i get abend.

Lrn t rd dmps!
Back to top
View user's profile Send private message
Mahi_e

New User


Joined: 10 Dec 2010
Posts: 43
Location: hyderabad

PostPosted: Thu Apr 28, 2011 6:03 pm
Reply with quote

okkk..


Thanks,
Back to top
View user's profile Send private message
GuyC

Senior Member


Joined: 11 Aug 2009
Posts: 1281
Location: Belgium

PostPosted: Thu Apr 28, 2011 6:15 pm
Reply with quote

at minimum , just before your commit, you would save/display a restart-key.

the actual record/row which fails (like in the dump) is irrelevant for restartability because all previous updates since last commit will be rollbacked.
Back to top
View user's profile Send private message
prino

Senior Member


Joined: 07 Feb 2009
Posts: 1306
Location: Vilnius, Lithuania

PostPosted: Thu Apr 28, 2011 6:24 pm
Reply with quote

GuyC wrote:
the actual record/row which fails (like in the dump) is irrelevant for restartability because all previous updates since last commit will be rollbacked.


Sr, bt f y dnt knw wht rcrd css th bnd, rstrtng dsn't mk mch sns.

('m bgnnng t lk ths SMS stff icon_lol.gif)
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Thu Apr 28, 2011 6:35 pm
Reply with quote

Mahi_e wrote:
suppose in my logic , i will use commit for every 60 records for success running of job.
Check-point/restart and DB2 COMMIT are different animals. If the COMMIT frequency is 60, that does not necessitates a check-point just before you commit. Read the indication from GuyC.

Chek-point/restart logics are specifc to sites and must be deployed in advance in your program, as Robert has mentioned also.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Thu Apr 28, 2011 6:36 pm
Reply with quote

LOL - Good one Prino. icon_biggrin.gif
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1788
Location: Bloomington, IL

PostPosted: Thu Apr 28, 2011 7:41 pm
Reply with quote

prino wrote:
Mahi_e wrote:
Thanks for ur answer.

Cn y tll m wht th wrd "ur" mns?

"If u cn rd ths, u cn mk bg bx n IT ndstry."
Back to top
View user's profile Send private message
prino

Senior Member


Joined: 07 Feb 2009
Posts: 1306
Location: Vilnius, Lithuania

PostPosted: Thu Apr 28, 2011 8:16 pm
Reply with quote

Akatsukami wrote:
prino wrote:
Mahi_e wrote:
Thanks for ur answer.

Cn y tll m wht th wrd "ur" mns?

"If u cn rd ths, u cn mk bg bx n IT ndstry."

Sprclfrglstcxpldcs! icon_cool.gif
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2455
Location: Hampshire, UK

PostPosted: Thu Apr 28, 2011 11:22 pm
Reply with quote

Quote:
Sprclfrglstcxpldcs!

Super Caley Fragile Celtic Are Atrocious!
Headline in a Scottish newspaper after little Inverness Caledonian Thistle (Caley) knocked mighty Glasgow Celtic out of the Scottish Football Association Cup a few years back.
Back to top
View user's profile Send private message
Mahi_e

New User


Joined: 10 Dec 2010
Posts: 43
Location: hyderabad

PostPosted: Fri Apr 29, 2011 10:20 am
Reply with quote

Thanks for all Suggestions
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 Load new table with Old unload - DB2 DB2 6
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 To find whether record count are true... DFSORT/ICETOOL 6
No new posts Multiple table unload using INZUTILB DB2 2
Search our Forums:

Back to Top