How to attach a file in the DSSendmail after subroutine

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
sjordery
Premium Member
Premium Member
Posts: 202
Joined: Thu Jun 08, 2006 5:58 am

How to attach a file in the DSSendmail after subroutine

Post by sjordery »

I wants to attach a file in the DSSendmail post job routine.
I have set the parameter as mentioned below.

From:jordery@abcd.com\nTo:pqr@abcd.com\nServer:smtp.ss.com\nAttach:/usr/ctg/dbacess.txt

Here the attached file dbacess.txt is not being transferred in the mail only a blank mail is transferred.
Can you suggest me what is the problem?
Last edited by sjordery on Wed Apr 11, 2007 12:03 am, edited 1 time in total.
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

In routines, under utilities you have DSSendMailAttachmentTester(). Test that out and see if it works there first. If it does, look at its code and use that to send an attachment.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

There needs to be a colon between "Attach" and the path name, not a space.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply