Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

SAS Email Chart as attachment code

Posted on 2014-12-11
2
Medium Priority
?
369 Views
Last Modified: 2016-02-13
Hello,

I am new to coding in SAS.  I have several control charts using the code below.
proc shewhart data=MyWork.TREND; by recCd;
xchart BALAMT * MonYr / sigmas=2;
      run;
I would like to attached the chart ,as a pdf, that has outlyers and send it via email to notify the owner.  
Is there Syntax that i could used to accomplish this?
0
Comment
Question by:Thomask23
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 8

Accepted Solution

by:
ShannonEE earned 2000 total points
ID: 40495021
Dear  Thomask23,

SAS can connect and send emails.  The usual means is to write to a file which has been set to point to the e-mail system that is available to your running system.  You give it
To:
From:
Sender:
Subject:
and
Attach:
lines, all by just writing out the required values using sas put statements.

It is then up to you to ensure that the one or more attachments (be it a HTML, rtf, text or pdf files) have already been generated.

You can use sas ods statement to get results in pdf format, and specify where the pdf file will be temporarly (or permanently) stored.

The following link from a SAS user group conference gives a very good example, with explaination of the steps involved.

Sending SAS reports by email

Ian
0
 
LVL 8

Assisted Solution

by:ShannonEE
ShannonEE earned 2000 total points
ID: 40495046
Dear Thomask23,

How you specify the ods statements and how you code up the filename and data step will depend on how you are accessing SAS.

Do you have a stand-alone copy of sas foundation or run from a server?
Are you using enterprise guide?
Are  you using sas add-in for ms office?
Do you access SAS through a browser and SAS Studio?

If you can set up and run code similar to that in the link above, well good.  If you are restricted by your current set up then we should be able to supple pointers on how to proceed to get a successful email link working.

Ian
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Employees depend heavily on their PCs, and new threats like ransomware make it even more critical to protect their important data.
Many businesses neglect disaster recovery and treat it as an after-thought. I can tell you first hand that data will be lost, hard drives die, servers will be hacked, and careless (or malicious) employees can ruin your data.
This tutorial will walk an individual through setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…
Six Sigma Control Plans

715 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question