Sending an excel file as an attachment in a mail

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
vimali balakrishnan
Participant
Posts: 60
Joined: Mon Dec 27, 2004 3:38 am

Sending an excel file as an attachment in a mail

Post by vimali balakrishnan »

Hi,

I tried sending an excel file (.xls,.csv) as an attachment in a mail.There is an option called Attachments in notification activity of DataStage version 7.5.But I couldn't get that excel file thro' my mail.I am able to send .txt files as an attachment in notification activity.Can you clarify me?????


Thanks,
Vimali.
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post by Sainath.Srinivasan »

Try renaming your xls as txt and run the same. If it works then there is problem with xls else with the mechanism.

The file to be attached must reside in the DataStage server.
garthmac
Charter Member
Charter Member
Posts: 55
Joined: Tue Oct 21, 2003 9:17 am
Location: UK

Post by garthmac »

You can run a shell script containing the following:

(uuencode /WorkingDirectory/Source.csv Target.csv ) | mail -s "Email Subject" whoever@acme.com
vimali balakrishnan
Participant
Posts: 60
Joined: Mon Dec 27, 2004 3:38 am

Post by vimali balakrishnan »

Since DataStage works only when the excel file is a .CSV file.So I tried mailing an excel file(.CSV),it worked for me.So I'm able to send a .csv file as well as .txt file thro' notification activity.


Thanks,
Vimali.
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post by Sainath.Srinivasan »

E-mail attachments has nothing to do with DataStage processing that file. You can even e-mail any system files using the DataStage notification stage.
trokosz
Premium Member
Premium Member
Posts: 188
Joined: Thu Sep 16, 2004 6:38 pm
Contact:

Post by trokosz »

DataStage SendMail does not support attachements....You would need to revert to activating Unix MailX to accomplish what you desire
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Actually, it does - in 7.5 - which the OP seems to have.
-craig

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