Reading Log file

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
MOHAMMAD.ISSAQ
Participant
Posts: 78
Joined: Fri Mar 02, 2007 4:54 am
Location: CHENNAI

Reading Log file

Post by MOHAMMAD.ISSAQ »

I've a requirement where i need to pass the contents of the log file of the last job ran to some text file.After passing to it i have to count the number of warnings present in the text file.

Just i want the contents of the last job ran not others...

Please provide pointers to this...
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Do you want to use a job, a command or a routine to dump the log table contents into a text file?

Search the forum for techniques. There are many.

You can even count the warnings in a specific time range without dumping the contents to a text file, using the DataStage API function DSGetLogSummary (or the dsjob -logsum command).
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
MOHAMMAD.ISSAQ
Participant
Posts: 78
Joined: Fri Mar 02, 2007 4:54 am
Location: CHENNAI

Post by MOHAMMAD.ISSAQ »

Thanks ray...
I want to use a "routine" for that.
I searched on the forum but i end up with no results..
Maybe i'm not using the correct keywords.

Could you please tell me the keywords...


Pls help me out ray...
balajisr
Charter Member
Charter Member
Posts: 785
Joined: Thu Jul 28, 2005 8:58 am

Post by balajisr »

Try search using keyword logsum.
Post Reply