Attach a file in an email, using Routine

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
kannantechno
Participant
Posts: 9
Joined: Tue Feb 16, 2010 1:18 am

Attach a file in an email, using Routine

Post by kannantechno »

Any one tried to attach a file in an email notification using DS routine, please share your suggestions or code.
Regards,
Kannan
priyadarshikunal
Premium Member
Premium Member
Posts: 1735
Joined: Thu Mar 01, 2007 5:44 am
Location: Troy, MI

Post by priyadarshikunal »

call DSSend mail from your routine,
below is the syntax.

Code: Select all

Code= DSSendMail("From:me@here\nTo:you@there\nSubject:Hi ya\nAttach:/usr/AFile.txt\nBody:Line1\n%report%")
Priyadarshi Kunal

Genius may have its limitations, but stupidity is not thus handicapped. :wink:
Post Reply