Eileen, 

We use Emailhost to forward to your mail server. 

//SND         EXEC SAS,                                          
//            COND=(0,LT),                                       
//            WORK='10000,200',                                  
//            OPTIONS='EMAILHOST=MAINFRAME.xxxxxx.COM'        
 

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:ibm-m...@bama.ua.edu] On
Behalf Of Barkow, Eileen
Sent: Wednesday, October 07, 2009 4:26 PM
To: IBM-MAIN@bama.ua.edu
Subject: Re: mainframe e-mail with attachments

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:ibm-m...@bama.ua.edu] On
Behalf Of Ulrich Krueger
Sent: Wednesday, October 07, 2009 3:10 PM
To: IBM-MAIN@bama.ua.edu
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=('x...@abc.com')
         cc=('xx...@mycompanmy.com')

         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:ibm-m...@bama.ua.edu] On
Behalf
Of Pommier, Rex R.
Sent: Wednesday, October 07, 2009 10:26
To: IBM-MAIN@bama.ua.edu
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 lists...@bama.ua.edu 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 lists...@bama.ua.edu with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html


This e-mail message and any attachments transmitted with it are confidential 
and are intended solely for the use of its authorized recipient(s). If you are 
not an intended or authorized recipient, you are hereby notified that any 
disclosure, copying, distribution or taking any action in reliance on the 
information contained in this e-mail is prohibited. If you have received this 
message in error or are not authorized to receive it, please immediately notify 
the sender and delete the original message and all copies of it from your 
computer.

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

Reply via email to