Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8990

Re: Job run time to be sent in email

$
0
0

Hi Kedar Pujari,

 

How about creating a in job parameter on the mail job (replace 'Step 1, Job 1' with '<name_of_step>, Job <x>' where x is the number of the job of which you want the stats):

 

=Query.getNumber('select Job.RunTime from Job where Job.JobId = ?', [Query.getRelativeJob('Step 1,job 1')], 'n')

 

Alternatively (start time and end time):

 

=Query.getDate('select Job.RunStart from Job where Job.JobId = ?', [Query.getRelativeJob('Step 1,job 1')], 'n')

=Query.getDate('select Job.RunEnd from Job where Job.JobId = ?', [Query.getRelativeJob('Step 1,job 1')], 'n')

 

Then you reference that as ${Runtime}, ${RunStart}, ${RunEnd} in your mail source, respectively ...  I assume you will name the parameters as such ... ;-)

 

Regards,

 

HP


Viewing all articles
Browse latest Browse all 8990

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>