Hello,
I have a few cyclic jobs that run every 5 mins, picks up log files and moves them to a safe folder. If there is, or is not a log file to pick up, the job simply resets for its next run. However, if there isn't a log file, it writes an entry into the GAS; That fills up rather fast from alerts that we do not worry about.
On to my question:
Is there a way to prevent a job from writing its NOTOK alert to the GAS?
Sorry if this has been asked before, and thank you for your time.
Question on cyclic job writing to GAS on NOTOK:
- jarnsbarger
- Nouveau
- Posts: 3
- Joined: 08 Oct 2010 12:00
Hello,
Did You think about to use the On/Do option of the steps tab?
The simpliest way would be to code: On NOTOK - Do OK,
but if the script returns a certain compstat for the particular situation, it would be more elegant to use perhaps something like: On COMPSTAT=3 - Do OK.
Hope this shows you the way how to...
Greetings!
Did You think about to use the On/Do option of the steps tab?
The simpliest way would be to code: On NOTOK - Do OK,
but if the script returns a certain compstat for the particular situation, it would be more elegant to use perhaps something like: On COMPSTAT=3 - Do OK.
Hope this shows you the way how to...
Greetings!
Question on cyclic job writing to GAS on NOTOK:
If you are trying to suppress the default 'Ended NOTOK' message that occurs when any job fails, you can do this by changing the EM system parameter ‘AlertOnAbend’ to ‘0’ (default = '1').
If it is just this job you are worried about, it is best to look for the specific message relating to the log file and then if that is found, set the job to OK.
So just use:
On Statement = "*", Code = "*log file not found*" (or whatever is suitable).
Do OK
If it is just this job you are worried about, it is best to look for the specific message relating to the log file and then if that is found, set the job to OK.
So just use:
On Statement = "*", Code = "*log file not found*" (or whatever is suitable).
Do OK