View previous topic :: View next topic |
Author |
Message |
mainframebeginner Beginner
Joined: 11 May 2010 Posts: 14 Topics: 5
|
Posted: Sat May 15, 2010 2:43 pm Post subject: Can we wirte a JCL which submits a job after an hour |
|
|
Hi ,
There are Auto-submission steps in my job ... i mean if i submit one job after the successful execution of that job it will submit one more job without manual intervention. ( i hope it is clear)
My requirement is .. i have trigger my first job .. after the succesful execution of first job after an hour the second job should trigger......there should be 1hour gap between two jobs...
Is it possible to write a JCL like this?
Appreciate all your help!!
Thanks. |
|
Back to top |
|
|
superk Advanced
Joined: 19 Dec 2002 Posts: 684 Topics: 5
|
Posted: Sat May 15, 2010 7:51 pm Post subject: |
|
|
Anything's possible, but how will your data center feel about your job just sitting there, burning CPU cycles and tying up an initiator, for an hour, without doing anything? |
|
Back to top |
|
|
mainframebeginner Beginner
Joined: 11 May 2010 Posts: 14 Topics: 5
|
Posted: Sun May 16, 2010 1:25 am Post subject: |
|
|
Yes, i agree with you. but this is my requirement.
We are trying to automate the job execution without any manual intervention. just trigger one job rest will take care of itself. everything is done but struck up here with the above query.
Can you please help? |
|
Back to top |
|
|
semigeezer Supermod
Joined: 03 Jan 2003 Posts: 1014 Topics: 13 Location: Atlantis
|
Posted: Sun May 16, 2010 3:05 pm Post subject: |
|
|
Some ideas:- Use a real job scheduler (preferred)
- Look at $TA command in JES (and don't forget how to cancel the requests!)
- Write small program that sleeps (not spins) and run as ajob with a special initiator class just for you
- Write small program that sleeps (not spins) and run as a started task
- Use cron
- Submit jobs via ftp from automated task scheduler or similar from an external Windows or Unix box
- probably others...
_________________ New members are encouraged to read the How To Ask Questions The Smart Way FAQ at http://www.catb.org/~esr/faqs/smart-questions.html. |
|
Back to top |
|
|
superk Advanced
Joined: 19 Dec 2002 Posts: 684 Topics: 5
|
|
Back to top |
|
|
papadi Supermod
Joined: 20 Oct 2009 Posts: 594 Topics: 1
|
Posted: Sun May 16, 2010 4:46 pm Post subject: |
|
|
Quote: | Yes, i agree with you. but this is my requirement. | What business reson is there for this "requirement". . .
If you have some real reason to start job 2 exactly one hour after job 1 ends, you need to use the scheduling system already in place on your system. You should not implement something you made up for this.
If you persist in trying to do things the system should do, you need to also deal with the occasion when there is an interruption. . . _________________ All the best,
di |
|
Back to top |
|
|
Anuj Dhawan Intermediate
Joined: 19 Jul 2007 Posts: 298 Topics: 7 Location: Mumbai,India
|
Posted: Mon May 17, 2010 6:08 am Post subject: |
|
|
is it really a requitrement to be implemented in "production" or something to do with automation in test environment? _________________ Regards,
Anuj |
|
Back to top |
|
|
|
|