Eileen, Using SAS Email requires that the userid under which this job runs have a valid RACF OMVS segment (or a set of systemwide RACF OMVS defaults must exist that allow any userid access to basic OMVS and TCPIP functions). You also need the SMTP server task running on your zOS system or you need to use the SAS Option EMAILHOST=smtp.xyz.com (use your company's SMTP email server name here).
All these nitty, gritty details are in the documentation. Read the docs first, THEN jump in the water! Regards, Ulrich Krueger -----Original Message----- From: IBM Mainframe Discussion List [mailto:ibm-m...@bama.ua.edu] On Behalf Of Barkow, Eileen Sent: Wednesday, October 07, 2009 13:26 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 ---------------------------------------------------------------------- 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