How to fetch all entries of job log from unix?
Moderators: chulett, rschirm, roy
-
- Premium Member
- Posts: 730
- Joined: Tue Nov 04, 2008 10:14 am
- Location: Bangalore
How to fetch all entries of job log from unix?
Can anyone help me with fetching all entries of job log from unix. I need to grep for a particular entry from the log.
Thanks
Thanks
-
- Participant
- Posts: 3337
- Joined: Mon Jan 17, 2005 4:49 am
- Location: United Kingdom
-
- Premium Member
- Posts: 730
- Joined: Tue Nov 04, 2008 10:14 am
- Location: Bangalore
Thank you .....
I have one more query here....
I was trying to insert a warning into the log using call DSLogWarn ("[IBM][CLI Driver][DB2/AIX64] SQL1476N The current transaction was rolled back because of error -964. SQLSTATE=40506","MyRoutine")
but i am facing problem while insertin double quotes into the message tried doing with \" but didnot work any ideas?
I have one more query here....
I was trying to insert a warning into the log using call DSLogWarn ("[IBM][CLI Driver][DB2/AIX64] SQL1476N The current transaction was rolled back because of error -964. SQLSTATE=40506","MyRoutine")
but i am facing problem while insertin double quotes into the message tried doing with \" but didnot work any ideas?
-
- Premium Member
- Posts: 730
- Joined: Tue Nov 04, 2008 10:14 am
- Location: Bangalore
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
-
- Premium Member
- Posts: 730
- Joined: Tue Nov 04, 2008 10:14 am
- Location: Bangalore
Yes I guess you are speaking about the dsjob -lognewest and dsjob -logdetail......
But here the requirement is to fetch all WARNIGS for the last run , this can be impelented by fetching the newest log event before and after the job run and then using the dsjob -logdetail to fetch all entries lying between the above said event numbers, but -logdetail i guess doesnot give the flexibility to fetch only WARNINGS it dumps all events
-logsum gives the fexibility to fetch only WARNINS but it is not possible to restrict the scope between two Event Numbers .
Above all both the commands dump all information into single line making the task more complicated.
But here the requirement is to fetch all WARNIGS for the last run , this can be impelented by fetching the newest log event before and after the job run and then using the dsjob -logdetail to fetch all entries lying between the above said event numbers, but -logdetail i guess doesnot give the flexibility to fetch only WARNINGS it dumps all events
-logsum gives the fexibility to fetch only WARNINS but it is not possible to restrict the scope between two Event Numbers .
Above all both the commands dump all information into single line making the task more complicated.
-
- Participant
- Posts: 3337
- Joined: Mon Jan 17, 2005 4:49 am
- Location: United Kingdom