Discussion:
(Re)starting an autostart job manually
(too old to reply)
Ewout
2006-01-30 14:08:40 UTC
Permalink
I have created a number of autostart job entries for a subsystem. Now,
when one of the autostart job entries crashes for some reason, I want
to restart the particular job. Of course, I could end the whole
subsystem and then restart it again, but I don't want to do that,
because one or more of the other autostart jobs might be busy.
Therefore, I want to restart only the particular job that failed. I
would like to do this in a way that closely resembles the way the job
is started when the subsystem is started. When defining the autostart
job entry, only a job description needs to be specified. Thus, I am
looking for a way to start a job referring only to a job description. I
could use the SBMJOB command, and use *JOBD whenever possible, but I
have the feeling there should be a more elegant way.

Ideally, I would like to use a command like STRAJ (Start Autostart
Jobs). Unfortunately, this command does'nt exist. Note that the command
STRPJ (Start Prestart Jobs) does exist!

Any clues?

Ewout
poddys
2006-01-30 14:58:04 UTC
Permalink
You only need to manually submit the job that crashed. I guess it
ought to be possible to write a program that interrogated the list of
autostart jobs, checked to make sure they were all running, and
resubmitted ones that were found to be not active, but I doubt that is
worthwhile.
Depends really on the frequency that the crashes happen and when - if
they happen during the night when there is nobody to restart them it
might be helpful to have an autostart.
Lou
2006-01-30 17:16:03 UTC
Permalink
I always create a copy of the autostart jobs in the job scheduler, but
leave them on hold. That way, I can manually kick one off from the job
scheduler if the original ends/needs to be ended for some reason.
Tim M
2006-02-01 05:37:32 UTC
Permalink
SBMJOB JOB(auto-start job name) JOBQ(subsystem job queue) JOBD(autostart
job description) USER(*JOBD) RQSDTA(*JOBD) RTGDTA(*JOBD) INLLIBL(*JOBD)
CURLIB(*USRPRF) MSGQ(*NONE)
Post by Ewout
I have created a number of autostart job entries for a subsystem. Now,
when one of the autostart job entries crashes for some reason, I want
to restart the particular job. Of course, I could end the whole
subsystem and then restart it again, but I don't want to do that,
because one or more of the other autostart jobs might be busy.
Therefore, I want to restart only the particular job that failed. I
would like to do this in a way that closely resembles the way the job
is started when the subsystem is started. When defining the autostart
job entry, only a job description needs to be specified. Thus, I am
looking for a way to start a job referring only to a job description. I
could use the SBMJOB command, and use *JOBD whenever possible, but I
have the feeling there should be a more elegant way.
Ideally, I would like to use a command like STRAJ (Start Autostart
Jobs). Unfortunately, this command does'nt exist. Note that the command
STRPJ (Start Prestart Jobs) does exist!
Any clues?
Ewout
Loading...