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

step completion time and how to purge a job from another JOB


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Vishalgupta

New User


Joined: 28 May 2008
Posts: 8
Location: mumbai

PostPosted: Mon Jun 29, 2009 4:02 pm
Reply with quote

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
View user's profile Send private message
UmeySan

Active Member


Joined: 22 Aug 2006
Posts: 771
Location: Germany

PostPosted: Mon Jun 29, 2009 4:07 pm
Reply with quote

Hi Vishalgupta !

Which Job scheduling-system are you using ???
Back to top
View user's profile Send private message
Vishalgupta

New User


Joined: 28 May 2008
Posts: 8
Location: mumbai

PostPosted: Mon Jun 29, 2009 4:16 pm
Reply with quote

JOBTRAC and CA-11
Back to top
View user's profile Send private message
UmeySan

Active Member


Joined: 22 Aug 2006
Posts: 771
Location: Germany

PostPosted: Mon Jun 29, 2009 5:10 pm
Reply with quote

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
View user's profile Send private message
Vishalgupta

New User


Joined: 28 May 2008
Posts: 8
Location: mumbai

PostPosted: Mon Jun 29, 2009 5:19 pm
Reply with quote

Thanks. I will contact to the concern person
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


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

PostPosted: Mon Jun 29, 2009 6:15 pm
Reply with quote

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
View user's profile Send private message
Vishalgupta

New User


Joined: 28 May 2008
Posts: 8
Location: mumbai

PostPosted: Tue Jun 30, 2009 9:08 am
Reply with quote

we need to check this condition after successfull completion of step1.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19243
Location: Inside the Matrix

PostPosted: Tue Jun 30, 2009 9:18 am
Reply with quote

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
View user's profile Send private message
Anuj Dhawan

Superior Member


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

PostPosted: Tue Jun 30, 2009 12:49 pm
Reply with quote

And what if Step1 itself abended?
Back to top
View user's profile Send private message
Vishalgupta

New User


Joined: 28 May 2008
Posts: 8
Location: mumbai

PostPosted: Tue Jun 30, 2009 2:19 pm
Reply with quote

Hi Anuj,

In case of abend at step1, we will restart the JOB from the Top.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


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

PostPosted: Tue Jun 30, 2009 2:24 pm
Reply with quote

If you are planning to implement this in production...(long pause)... Good Luck.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19243
Location: Inside the Matrix

PostPosted: Tue Jun 30, 2009 7:59 pm
Reply with quote

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
View user's profile Send private message
sudhakarreddy.ibm
Warnings : 1

New User


Joined: 20 Apr 2009
Posts: 15
Location: chennai

PostPosted: Tue Jun 30, 2009 10:31 pm
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19243
Location: Inside the Matrix

PostPosted: Tue Jun 30, 2009 11:47 pm
Reply with quote

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
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts To get the the current time DFSORT/ICETOOL 13
No new posts RC query -Time column CA Products 3
No new posts Return codes-Normal & Abnormal te... JCL & VSAM 7
No new posts C Compile time time stamps Java & MQSeries 10
No new posts Parallelization in CICS to reduce res... CICS 4
Search our Forums:

Back to Top