Schedule a job in Rexx



IBM's Command List programming language & Restructured Extended Executor

Schedule a job in Rexx

Postby XY09 » Tue Jan 18, 2011 1:36 pm

Hi All,

Could anyone give me a piece of code to execute a job 9:00 Am eveyday(Either in JCL or Rexx).
XY09
 
Posts: 25
Joined: Mon Apr 26, 2010 9:19 am
Has thanked: 0 time
Been thanked: 0 time

Re: Schedule a job in Rexx

Postby MrSpock » Tue Jan 18, 2011 1:57 pm

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?
User avatar
MrSpock
Global moderator
 
Posts: 807
Joined: Wed Jun 06, 2007 9:37 pm
Location: Raleigh NC USA
Has thanked: 0 time
Been thanked: 4 times

Re: Schedule a job in Rexx

Postby steve-myers » Tue Jan 18, 2011 8:58 pm

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.
steve-myers
Global moderator
 
Posts: 2105
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 243 times


Return to CLIST & REXX

 


  • Related topics
    Replies
    Views
    Last post