Get log for job last executed

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
lokesh_chopade
Participant
Posts: 16
Joined: Fri Oct 27, 2006 6:27 am

Get log for job last executed

Post by lokesh_chopade »

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?
nishadkapadia
Charter Member
Charter Member
Posts: 47
Joined: Fri Mar 18, 2005 5:59 am

Re: Get log for job last executed

Post by nishadkapadia »

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.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Re: Get log for job last executed

Post by chulett »

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
That would be the -lognewest option.

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
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Use the -lognewest option to get the most recent "job started" event, then everything with a higher event number or higher or equal 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