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
 

 

How to find updated Records from a table

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
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    Post subject: How to find updated Records from a table
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

Active Member


Joined: 07 Feb 2009
Posts: 982
Location: Oostende, Belgium

PostPosted: Thu Apr 28, 2011 3:40 pm    Post subject: Re: How to find updated Records from a table
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    Post subject:
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

Active Member


Joined: 07 Feb 2009
Posts: 982
Location: Oostende, Belgium

PostPosted: Thu Apr 28, 2011 5:43 pm    Post subject:
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    Post subject:
Reply with quote

okkk..


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

Senior Member


Joined: 11 Aug 2009
Posts: 1278
Location: Belgium

PostPosted: Thu Apr 28, 2011 6:15 pm    Post subject:
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

Active Member


Joined: 07 Feb 2009
Posts: 982
Location: Oostende, Belgium

PostPosted: Thu Apr 28, 2011 6:24 pm    Post subject:
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

Senior Member


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

PostPosted: Thu Apr 28, 2011 6:35 pm    Post subject:
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

Senior Member


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

PostPosted: Thu Apr 28, 2011 6:36 pm    Post subject:
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: 1738
Location: Bloomington, IL

PostPosted: Thu Apr 28, 2011 7:41 pm    Post subject:
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

Active Member


Joined: 07 Feb 2009
Posts: 982
Location: Oostende, Belgium

PostPosted: Thu Apr 28, 2011 8:16 pm    Post subject:
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: 1712
Location: UK

PostPosted: Thu Apr 28, 2011 11:22 pm    Post subject:
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    Post subject:
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    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 How to find the first monday of the w... abdulrafi COBOL Programming 10 Fri Nov 25, 2016 3:24 pm
No new posts Limit duplicate records in the SORT pshongal SYNCSORT 6 Mon Nov 21, 2016 12:54 pm
No new posts How to split the records using the am... vnktrrd DFSORT/ICETOOL 24 Fri Oct 28, 2016 7:33 pm
No new posts Sort records based on numeric field. Alks SYNCSORT 2 Wed Oct 19, 2016 10:14 pm
No new posts abend sort based on count records in ... anatol DFSORT/ICETOOL 5 Mon Oct 17, 2016 10:10 pm


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