Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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

Senior Member


Joined: 07 Feb 2009
Posts: 1072
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

Senior Member


Joined: 07 Feb 2009
Posts: 1072
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: 1281
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

Senior Member


Joined: 07 Feb 2009
Posts: 1072
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: 1783
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

Senior Member


Joined: 07 Feb 2009
Posts: 1072
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: 1932
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 ISSUE IN copying Sequential file reco... thesumitk JCL & VSAM 2 Wed Dec 13, 2017 3:07 pm
No new posts Merging 2 records at multiple rows wi... Bijesh DFSORT/ICETOOL 2 Wed Dec 06, 2017 1:50 am
No new posts Increment number for every group of r... srajendran2 DFSORT/ICETOOL 7 Thu Nov 09, 2017 10:31 pm
No new posts Matching and unmatched records!! Vignesh Sid SYNCSORT 3 Thu Nov 09, 2017 11:22 am
No new posts Formatting multiple records to a sing... Vignesh Sid SYNCSORT 3 Tue Nov 07, 2017 12:22 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us