Before I go to the SAS web site, is something missing here?
How does it know which  node to connect to.
I get connection refused.
With XMIT, I have to issue a TRANSMID NODE  and helo NODE commands.


-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf Of 
Ulrich Krueger
Sent: Wednesday, October 07, 2009 3:10 PM
To: [email protected]
Subject: Re: mainframe e-mail with attachments

Rex,
SAS Email is slick. All you need is SAS Base on z/OS. 
Go to the SAS website and look for the email documentation with examples.
Print it, read it and take a look at all the examples. That'll explain what
the example below does, how it does it and what you can do, using different
parameters, to achieve your desired results.
Overhead should not be too bad, depending on what else the SAS job has to do
to create the email contents and/or attachment. So, YMMV.
The emails are sent from the SAS job directly to your zOS - SMTP task
(default) or any mail host server you specify.

Here's a very simple example to send an email with attached mainframe
dataset as plain *.txt file:
//STEP1  EXEC  SAS
//SYSIN  DD  *                                                          
  filename mymail email ;                                               
  data _null_;                                                          
    file mymail                                                         
         to=('[email protected]')
         cc=('[email protected]')                                     
         subject='Testing Email from a SAS program'                     
         attach=("mainframe.file.name"                           
                 ext='txt' type='text/plain')
         ;                                                              
    put 'Testing Email using SAS';                                      
    run;

Regards,
Ulrich Krueger

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf
Of Pommier, Rex R.
Sent: Wednesday, October 07, 2009 10:26
To: [email protected]
Subject: Re: mainframe e-mail with attachments

Tony,

I have base SAS but nothing else.  I haven't looked at SAS as an e-mail
provider.  Would I need more than base?  Also, given what SAS does to my
machine (a small uni) when I run MXG, what is the overhead of using SAS
to e-mail out a bunch of 1-3 page reports?

Thanks.

Rex

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to