I just wanted to thank you for the SAS information. We just started to 
have this discussion, of e-mail with attachments, and you have provided me 
with a no cost resolution that works and is easy. 

Pat 
Pat Mihalec
Rush University Medical Center
Senior System Programmer
(312) 942-8386
pat_miha...@rush.edu
P   Please consider the environment before printing this email.



Ulrich Krueger <u...@pacbell.net> 
Sent by: IBM Mainframe Discussion List <IBM-MAIN@bama.ua.edu>
10/07/2009 02:10 PM
Please respond to
IBM Mainframe Discussion List <IBM-MAIN@bama.ua.edu>


To
IBM-MAIN@bama.ua.edu
cc

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

Reply via email to