View previous topic :: View next topic
|
Author |
Message |
Vishalgupta
New User
Joined: 28 May 2008 Posts: 8 Location: mumbai
|
|
|
|
Hi All,
I want to find out the step completion time in JOB and on the basis of completion time i need to purge an another job.
e.g. we have two jobs-
JOB1
JOB2
If step1 of a JOB1 complete before 10:00 then purge the JOB2.
1. How we can find out the completion time of STEP in a JOB?
2. How we can purge one job from another JOB?
Please suggest solution fr the same.
I will be very thankful to you. |
|
Back to top |
|
|
UmeySan
Active Member
Joined: 22 Aug 2006 Posts: 771 Location: Germany
|
|
|
|
Hi Vishalgupta !
Which Job scheduling-system are you using ??? |
|
Back to top |
|
|
Vishalgupta
New User
Joined: 28 May 2008 Posts: 8 Location: mumbai
|
|
|
|
JOBTRAC and CA-11 |
|
Back to top |
|
|
UmeySan
Active Member
Joined: 22 Aug 2006 Posts: 771 Location: Germany
|
|
|
|
So you have a Job-Scheduling.System installed.
Then it would be the best, to talk to the responsible co-workers there an discuss the problem. It's usualy a task, which should be solved via a scheduling system. |
|
Back to top |
|
|
Vishalgupta
New User
Joined: 28 May 2008 Posts: 8 Location: mumbai
|
|
|
|
Thanks. I will contact to the concern person |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
Quote: |
If step1 of a JOB1 complete before 10:00 then purge the JOB2. |
Any how I don't happen to accept this as a good coding practice. What if Step1 itself gets an abend? What about the future of JOB2? What in case restart is required from Step1? |
|
Back to top |
|
|
Vishalgupta
New User
Joined: 28 May 2008 Posts: 8 Location: mumbai
|
|
|
|
we need to check this condition after successfull completion of step1. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
we need to check this condition after successfull completion of step1. |
Is this additional info or a question?
Most (basically every) job that has multiple steps checks the condition code.
Your best alternative is to work with the scheduling people. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
And what if Step1 itself abended? |
|
Back to top |
|
|
Vishalgupta
New User
Joined: 28 May 2008 Posts: 8 Location: mumbai
|
|
|
|
Hi Anuj,
In case of abend at step1, we will restart the JOB from the Top. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
If you are planning to implement this in production...(long pause)... Good Luck. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
Suggest you re-think. . .
You should not purge a job - you should properly schedule it. If it is not needed, it should not be in the system at that time. It should be placed into the system when it is needed. Scheduling. . . |
|
Back to top |
|
|
sudhakarreddy.ibm Warnings : 1 New User
Joined: 20 Apr 2009 Posts: 15 Location: chennai
|
|
|
|
Hi All,
Is it possible to purge one JOB from another JOB.One JOB may have many STEP's.For example One JOB may have 5 STEP's.Is it possible to purge another JOB after executing the first STEP.
As for my knowledge you can build dependences among the step's in the JOB or betwen JOB's.
Please correct me if i am wrong.
Thanks in Advance................
sudhakar.............. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
Is it possible to purge one JOB from another JOB.One JOB may have many STEP's.For example One JOB may have 5 STEP's.Is it possible to purge another JOB after executing the first STEP. |
Which part of this do you not comprehend. . .
Quote: |
You should not purge a job |
We can only hope that your system management people will not tolerate this and reject the attempt to promote to production. |
|
Back to top |
|
|
|