Email Files From scheduled jobs

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
sribuz
Premium Member
Premium Member
Posts: 19
Joined: Mon Jun 04, 2007 7:26 pm
Location: US

Email Files From scheduled jobs

Post by sribuz »

Hi,

I developed a job which creates a file with date appending its name.

something like filename_2008-01-15.txt filename_2008-01-08.txt so on..

I have used a notification activity stage in sequence job and would like to attach these files.

how do I do that ?

I tried using Job parameter pram1 with value filepath/filename_#DSJobStartDate#.txt

and mentioned this param1 as file attachment i.e #param1#

but its not recognizing #DSJobStartDate#.

where did I went wrong ?
Thanks & Regards,
Sri
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

Try giving the following as the parameter value inside the job activity stage.

Code: Select all

filepath/filename_:OCONV(Date(), "D-YMD[4,2,2]"):.txt 
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
Post Reply