View previous topic :: View next topic
|
Author |
Message |
yuvaraj C
New User
Joined: 01 Jan 2008 Posts: 14 Location: IBM-India
|
|
|
|
Hi,
I have developed 2 different CLIST programs.
-> the first program will check the status of jobs and it will display the status to user whether it is running or not
->the second jcl will trigger the job's which are not running.
Note: The user has to make a note of the jobs which are not running while running the first CLIST program and the job name needs to be given as an input while running the second CLIST program inorder to trigger the job which are not running
My doubt is can we able to trigger a job based on the status returned for a job?
Can we able to check the condition of job which has been executed recently?
Can somebody help me on this to automate?
Thanks in Advance,
Yuvaraj C |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Well, if you have a list of jobs and apparently you can tell which ones are running it should be fairly easy to determine from the list the jobs that are not running. |
|
Back to top |
|
|
yuvaraj C
New User
Joined: 01 Jan 2008 Posts: 14 Location: IBM-India
|
|
|
|
Hi,
As I said there are 2 different CLISTs
When I execute the first CLIST program it will give the status of a list of jobs. And statuses could be any one of the following 'i.e. 'executing','not found', and 'output queue'.
Now,I would like to automate that if job is having the status as 'Not found or output queue' then it needs to be triggered automatically from a PDS library
Can you please help me to automate it?
Thanks,
Yuvaraj C |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
You should be aware that in house written scheduling applications are...
a NO-NO
the not found or in the output queue conditions are usually bad triggers
they will not protect against unwanted reruns
what about using TIVOLI |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
If you have one exec that finds the information and another exec that needs the information... find the section of code within the first and copy to the second exec. |
|
Back to top |
|
|
|