Page 1 of 1

Schedule a job in Rexx

PostPosted: Tue Jan 18, 2011 1:36 pm
by XY09
Hi All,

Could anyone give me a piece of code to execute a job 9:00 Am eveyday(Either in JCL or Rexx).

Re: Schedule a job in Rexx

PostPosted: Tue Jan 18, 2011 1:57 pm
by MrSpock
I would be I don't know how you could do that, at least without knowing more details. Where, or under what type of environment, would this run that would be active at that time, and is aware of the time-of-day, and has the authority to do what you need done? Why can't you use your job scheduling system?

Re: Schedule a job in Rexx

PostPosted: Tue Jan 18, 2011 8:58 pm
by steve-myers
MrSpock is correct. A job scheduling system is the better solution. It is actually slightly difficult to have a job or TSO session waiting for a particular time of day without being canceled because the system established max job wait time has been exceeded. In any event, since a job uses a limited resource (its JES2 initiator), you do not want a job sitting on its butt for this purpose, and a TSO session also uses a limited resource (your userid), so you don't want your TSO session waiting until 9 AM.