Hi,
I am able to get the log with DSGetLogSummary.
I find that there are some line breaks for a log event which I am not able to read.
Is there any way to eliminate the explicit line breaks and read the log in detail.
Thanks,
Phani
Linebreaks in the log
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Hi Ray,
When we use DSGetLogSummary , I understand that it will only read the log that got generated. So in that case , how can we read the log which is having linebreaks in it.
Is there any way to capture the Message ID through which we can capture the message and then do convert on char(10), @VM etc.,
Thanks,
Phani
When we use DSGetLogSummary , I understand that it will only read the log that got generated. So in that case , how can we read the log which is having linebreaks in it.
Is there any way to capture the Message ID through which we can capture the message and then do convert on char(10), @VM etc.,
Thanks,
Phani
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Do you want the summary without line breaks, or do you want the detail?
To get the detail of any particular event, you need DSGetLogEvent(). To use this you will need the event number. The usual way to get the event number is to use DSGetNewestLogId(). Probably easiest is to get the absolutely last event in the log, then decrement EventID until you encounter either a "job started" event or the smallest EventID in the log.
Research these function in on-line help.
To get the detail of any particular event, you need DSGetLogEvent(). To use this you will need the event number. The usual way to get the event number is to use DSGetNewestLogId(). Probably easiest is to get the absolutely last event in the log, then decrement EventID until you encounter either a "job started" event or the smallest EventID in the log.
Research these function in on-line help.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.