BookmarkSubscribeRSS Feed
deleted_user
Not applicable
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
4 REPLIES 4
deleted_user
Not applicable
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.
Cynthia_sas
Diamond | Level 26
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
deleted_user
Not applicable
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
Cynthia_sas
Diamond | Level 26
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

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 4 replies
  • 2228 views
  • 0 likes
  • 2 in conversation