Email Notification Job Run time parameter

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
senthilmp
Participant
Posts: 85
Joined: Mon Sep 22, 2008 6:11 am

Email Notification Job Run time parameter

Post by senthilmp »

Hi,

Am using Notification stage to send a mail. I need to attach the JobRunTime in the email Body. I tried to use the DSJobStartTime , but its not working.

Is there anyway we can attach the JobRunTime in the email body?

Thanks,
Senthil MP
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

The stage does not support parameters in the body other than the handful of error related variables as documented. You'd need to write your own DSSendMail interface routine to make the body truly dynamic.
-craig

"You can never have too many knives" -- Logan Nine Fingers
senthilmp
Participant
Posts: 85
Joined: Mon Sep 22, 2008 6:11 am

Post by senthilmp »

Pls suggest me how to write DSSendMail interface routine,
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

There is a routine called DSSendMail and another called DSSendMailTester that calls it that will illustrate things for you. Copy and adapt the latter to your need.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply