MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Can we wirte a JCL which submits a job after an hour

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
mainframebeginner
Beginner


Joined: 11 May 2010
Posts: 14
Topics: 5

PostPosted: Sat May 15, 2010 2:43 pm    Post subject: Can we wirte a JCL which submits a job after an hour Reply with quote

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


Joined: 19 Dec 2002
Posts: 684
Topics: 5

PostPosted: Sat May 15, 2010 7:51 pm    Post subject: Reply with quote

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


Joined: 11 May 2010
Posts: 14
Topics: 5

PostPosted: Sun May 16, 2010 1:25 am    Post subject: Reply with quote

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


Joined: 03 Jan 2003
Posts: 1014
Topics: 13
Location: Atlantis

PostPosted: Sun May 16, 2010 3:05 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
superk
Advanced


Joined: 19 Dec 2002
Posts: 684
Topics: 5

PostPosted: Sun May 16, 2010 4:26 pm    Post subject: Reply with quote

You'll find my recommendation in this previous topic.
Back to top
View user's profile Send private message
papadi
Supermod


Joined: 20 Oct 2009
Posts: 594
Topics: 1

PostPosted: Sun May 16, 2010 4:46 pm    Post subject: Reply with quote

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


Joined: 19 Jul 2007
Posts: 298
Topics: 7
Location: Mumbai,India

PostPosted: Mon May 17, 2010 6:08 am    Post subject: Reply with quote

is it really a requitrement to be implemented in "production" or something to do with automation in test environment?
_________________
Regards,
Anuj
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group