Parameter substitution in e-mail notification

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
Seyed
Participant
Posts: 74
Joined: Wed Apr 14, 2010 7:25 am
Location: Oklahoma City

Parameter substitution in e-mail notification

Post by Seyed »

All,
I have put in several e-mail notification activities in a job sequence. They work fine and generate e-mail under certain conditions. However, I have noticed that the e-mail notifications have problems with parameter substitutions. The parameter substitutions work correctly in the subject line of the notification, but fail to substitute parameter with the passed value in the body of the e-mail.

Here is the code

Subject line:

Code: Select all

[DS - Testing] Input file [#IFN_01#] is NOT Available!
E-mail Body:

Code: Select all

The DataStage job Seq_Load_Layer1_A failed. Please make sure that the input file [#IFN_01#] is available within the allocated wait time.
Here is the result in e-mail

Subject line:

Code: Select all

[DS - Testing] Input file [WFCSNCP_G6_TEST12.txt] is NOT Available!
E-mail Body:

Code: Select all

The DataStage job Seq_Load_Layer1_A failed. Please make sure that the input file [#IFN_01#] is available within the allocated wait time.
Should the parameter substitution be working in the body of the e-mail just like the subject line? My goal was to assign a file name to IFN_01 and have its assigned value be passed to both subject line and body of the e-mail.


Thank you,


Seyed
kandyshandy
Participant
Posts: 597
Joined: Fri Apr 29, 2005 6:19 am
Location: Singapore

Post by kandyshandy »

In the body of the email, DS does not substitute parameter with its value.
Kandy
_________________
Try and Try again…You will succeed atlast!!
Seyed
Participant
Posts: 74
Joined: Wed Apr 14, 2010 7:25 am
Location: Oklahoma City

Post by Seyed »

kandyshandy wrote:In the body of the email, DS does not substitute parameter with its value.
Hello kandyshandy,
Thank you very much for the information. I won't spend any more time on this issue. I will just hard code the file name in the body of the e-mail.

Continued Success,

Seyed
JRodriguez
Premium Member
Premium Member
Posts: 425
Joined: Sat Nov 19, 2005 9:26 am
Location: New York City
Contact:

Post by JRodriguez »

Would you like a second opinion? :P

Take a look at DSSendMail routine ..
Julio Rodriguez
ETL Developer by choice

"Sure we have lots of reasons for being rude - But no excuses
Post Reply