Page 1 of 1

capturing warning messages in my sequencer

Posted: Wed Mar 30, 2005 5:34 pm
by studyguy2001
hello.,

someone please adivce me on this.

.I have job sequencer to run and each sequence inturn has multiple jobs.If a job fails , the sequence aborts....when there is a warning it just moves to run the next job in the sequencer

i dont want to go to each and every logfile to find if there are any warnings....I wanted to find a way to capture these warning messages ONLY, instead of checking the logs.Is there a way to capture these warnings when all the sequences are run?

Just for info the sequncer is success. Just have to find a way to fix the warnings in the jobs.instead of getting all the details about all the jobs ( in the log file),can I only get the warning messages e-mailed or capture in a dataset.
i prefer capturing those warning only in dataset or a peek instead of email.

so please advice me on this.,
thanks

Posted: Wed Mar 30, 2005 6:44 pm
by kduke
This has been covered a lot. The field you want is called SEVERITY. Do a search for RT_LOG.

Posted: Thu Mar 31, 2005 2:04 am
by ray.wurlod
Set up another output link from the job activity. Trigger it for warnings. Invoke a Routine activity. Create a Routine that takes the job name as its argument and retrieves the warning message(s) from the job log (using DSGetNewestLogID and DSGetLogEntry functions and writes them to a text file. Append that file to email messages, and so on.

Posted: Thu Mar 31, 2005 3:52 am
by roy
Hi,
There is also the DSGetLogSummary() that can give all warnings from the log.
this could be run after any job finishes write to a file and attach in a notification activity.
might be implemented in an after routine.
just for saving the trouble of coding each job with warning captures .

IHTH,