Get log for job last executed
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 16
- Joined: Fri Oct 27, 2006 6:27 am
Get log for job last executed
As -logsum option populates entire log history, but require only last executed log details for job. Is there any way to get latest log only with dsjob command or other alternative?
-
- Charter Member
- Posts: 47
- Joined: Fri Mar 18, 2005 5:59 am
Re: Get log for job last executed
Hi,
One can get the job's last and first timestamp and subsquently the log details by passing the above two as parameters. (DSGetLogSummary)
This will give you the last execution details of the job.
One can also get DSGetNewestLogId for the job.
One can get the job's last and first timestamp and subsquently the log details by passing the above two as parameters. (DSGetLogSummary)
This will give you the last execution details of the job.
One can also get DSGetNewestLogId for the job.
Re: Get log for job last executed
That would be the -lognewest option.lokesh_chopade wrote:As -logsum option populates entire log history, but require only last executed log details for job. Is there any way to get latest log only with dsjob command
As noted, all of the command line options exist as 'DSGet' functions that can be used inside a job as well.
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact: