how to oount no of warning messages

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
singhald
Participant
Posts: 180
Joined: Tue Aug 23, 2005 2:50 am
Location: Bangalore
Contact:

how to oount no of warning messages

Post by singhald »

Hi all,


I need to count the no of warning messages which present in the datastage director for the current job run.

Please suggest me some way to count the warning messages.

Regards
Regards,
Deepak Singhal
Everything is okay in the end. If it's not okay, then it's not the end.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Code: Select all

dsjob -logsum Project Job | grep WARN | wc -l

Code: Select all

SELECT COUNT(*) FROM RT_LOGnnn WHERE SEVERITY = ('Warning' OR SEVERITY = 'Fatal') AND TIMESTAMP >= 'yyyy-mm-dd hh:mm:ss';
where nnn is the job number and yyyy-mm-dd hh:mm:ss is the start date/time of the job.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
singhald
Participant
Posts: 180
Joined: Tue Aug 23, 2005 2:50 am
Location: Bangalore
Contact:

Post by singhald »

dsjob -logsum -type WARNING DSProjectName DSJobName | grep "WARNING" | wc -l

i used this command , but it is count the warning which generated in previous run also.

Thanks
Regards,
Deepak Singhal
Everything is okay in the end. If it's not okay, then it's not the end.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Then use more filtering, on timestamp!
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply