capturing warning messages in my sequencer

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
studyguy2001
Participant
Posts: 19
Joined: Tue Feb 01, 2005 11:46 pm

capturing warning messages in my sequencer

Post 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
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

This has been covered a lot. The field you want is called SEVERITY. Do a search for RT_LOG.
Mamu Kim
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post 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.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
roy
Participant
Posts: 2598
Joined: Wed Jul 30, 2003 2:05 am
Location: Israel

Post 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,
Roy R.
Time is money but when you don't have money time is all you can afford.

Search before posting:)

Join the DataStagers team effort at:
http://www.worldcommunitygrid.org
Image
Post Reply