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
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: step completion time and how to purge a job from another JOB
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: 743
Location: Germany

PostPosted: Mon Jun 29, 2009 4:07 pm    Post subject:
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    Post subject: Reply to: step completion time and how to purge a job from a
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: 743
Location: Germany

PostPosted: Mon Jun 29, 2009 5:10 pm    Post subject:
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    Post subject: Reply to: step completion time and how to purge a job from a
Reply with quote

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

Senior Member


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

PostPosted: Mon Jun 29, 2009 6:15 pm    Post subject:
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    Post subject:
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

Site Director


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

PostPosted: Tue Jun 30, 2009 9:18 am    Post subject:
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

Senior Member


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

PostPosted: Tue Jun 30, 2009 12:49 pm    Post subject:
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    Post subject: Reply to: step completion time and how to purge a job from a
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

Senior Member


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

PostPosted: Tue Jun 30, 2009 2:24 pm    Post subject:
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

Site Director


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

PostPosted: Tue Jun 30, 2009 7:59 pm    Post subject:
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    Post subject:
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

Site Director


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

PostPosted: Tue Jun 30, 2009 11:47 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Get a job submitted itself every time... arunsoods JCL & VSAM 3 Tue Nov 22, 2016 4:05 pm
No new posts Check System time(Minute) Using TIME1... balaji81_k DFSORT/ICETOOL 5 Fri Nov 11, 2016 10:53 am
This topic is locked: you cannot edit posts or make replies. Get correct date and time when curren... balaji81_k DB2 24 Fri Oct 14, 2016 10:40 pm
No new posts cics & real time monitoring icehat CICS 5 Wed Sep 07, 2016 2:29 am
No new posts Get system time in micro second or cl... lind sh CICS 11 Mon Sep 05, 2016 11:14 pm


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