Hi,

You could use CommandZ for this, but it's probably not necessary, and you
would have to authorize the ID that submitted them to be able to issue those
commands, which is a lot of extra work.  I think all that is necessary is
the RC checking that you peformed in your sample for the last step which
would execute the CLIST or REXX exec that he wants to use to keep things
going, for instence, if the RC is zero he may want to execute one CLIST or
EXEC, but if 4 he may wish toi do something else.  His job could actually
update a file which could be input to his CLIST/REXX process in the first
place.  That could update his "schedule" with the highest condition code of
the JOB and, based on what that was, if it is within his parameters for a
"good" execution, he could have the next job started and also log that it
was submitted (or when it actually starts if his first jobstep updates the
same file) in a pseudo "poor man's" job scheduler and monitor.

Actually I think it could be very easy to write a ISPF based job scheduler
that would function fairly well that way, but instead of the last step of
the job, I think I would use a JES or SMF exit (probably IEFACTRT) to chek
to see if it was one of my favorites or execute an SVC or some other cross
system function to have my monitor task, do the CC update there.  All that
the CLIST would have to do is be more of a way to input jobs to the
scheduler and to keep track of how things are going.

Maybe I'll give this a shot at writing for inclusion on the CBT tape as a
JOB scheduler.  Lord knows that there are a lot of very expensive ones out
there and people could use a good free or very cheap one.

I have the AUTO program out on my CBT tape file that can submit jobs on a
time/date schedule, but there is no interconnection between AUTO and
anything else int he system.  

I have a "PAID" version of AUTO that is "aware" of things that are running
and will do (or not do) things based on other tasks which are running (or
not running) such as issue a DB2 command only if that DB2 subsystem is
active, and it also supports logic for some other symbolics (SYSTEM ID,
SHIFT, etc.).  But still no connection to the actual execution of anthing
that is submitted by AUTO.  Maybe that's a good place to do a lot of this
type of thing since the AUTO TASK is already there doing nothing most of the
time.

Brian

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to