Hello
I try to look for an answer in the forum but I only found for 7.5.
Is there any possibility to attach a file with DSSendmail or with Notification Activity ?
Thanks
DSSendMail - Attachement - DataStage Server 7.0
Moderators: chulett, rschirm, roy
two ways you can do it.
1) through unix
add an execute command activity stage in a sequence.
type as follow
Under command : /bin/ls
Under Parameters : directory_where_the_file_is; mail -s 'subject email_address_you_want_to_mail_to<full_path_to_the_location_to_the_file
2)
Add Notification Activity stage -- type necessary parameters
1) through unix
add an execute command activity stage in a sequence.
type as follow
Under command : /bin/ls
Under Parameters : directory_where_the_file_is; mail -s 'subject email_address_you_want_to_mail_to<full_path_to_the_location_to_the_file
2)
Add Notification Activity stage -- type necessary parameters
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Support for attachments in the Notification Activity was introduced in version 7.5. It is not available in versions earlier than this.
I can only assume (not having version 7.0 to check) that the same is true for the DSSendMail() function. However, since DSSendMail() ultimately calls the sendmail() function - the SMTP client, you could create your own mailer and invoke that from your job sequence via Execute Command.
I can only assume (not having version 7.0 to check) that the same is true for the DSSendMail() function. However, since DSSendMail() ultimately calls the sendmail() function - the SMTP client, you could create your own mailer and invoke that from your job sequence via Execute Command.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
You can also use uuencode for the attachment file and pipe the output to a mail function like mailx for example.
D'oh! If you were on UNIX, that is.
For Windows, I'd stick with blat.
D'oh! If you were on UNIX, that is.
For Windows, I'd stick with blat.
Last edited by chulett on Wed Sep 26, 2007 7:30 am, edited 1 time in total.
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers