DATA Step, Macro, Functions and more

Email with Attachment

Reply
N/A
Posts: 0

Email with Attachment

Hi,
I am sending an e-mail with attachment txt file which is created in the above DATA step of the mainframe SAS program. While in first time run, the sas program giving error for email as ERROR: Error opening attachment file TSA.DEVL.RM81251.T0457.DEC07. And also i am recieving the empty file through mail. when i tried in 2nd time it runs fine. Please help to resolve this problem.

Thanks,
Selvi
N/A
Posts: 0

Re: Email with Attachment

Posted in reply to deleted_user
I expect you used a FILENAME statement to define the attachment file outside of the data step that creates it. You may need to clear the FILEREF first to force the data to be flushed to the file, then reissue the FILENAME statement again to "open" the file for the attachment.
SAS Super FREQ
Posts: 8,868

Re: Email with Attachment

Posted in reply to deleted_user
Hi:
Sending email from z-OS starts on page 134 of the SAS companion:

http://support.sas.com/documentation/onlinedoc/91pdf/sasdoc_91/base_hostzos_6970.pdf

cynthia
N/A
Posts: 0

How to bipass the YES NO Cancel options before sending e.mail in sas

Posted in reply to Cynthia_sas
Hi ,

I am sending e.mail everyday, before it sent it is asking yes no cancel options. is there any way to bipass this.

I mean i want send e.mail directly without block.

Please let me know is there way?

Thanks
suresh
SAS Super FREQ
Posts: 8,868

Re: How to bipass the YES NO Cancel options before sending e.mail in sas

Posted in reply to deleted_user
Hi:
If you are talking about Outlook, these Tech Support Notes might be relevant:
http://support.sas.com/kb/9/243.html
http://support.sas.com/kb/5/335.html

Otherwise for other operating systems, consult the SAS Companion for your operating system or contact Tech Support.

cynthia
Ask a Question
Discussion stats
  • 4 replies
  • 432 views
  • 0 likes
  • 2 in conversation