Emailing with SAS – Jerry Le Breton, Softscape Solutions SAUSAG 40 – 19 May 2005 Emailing with SAS How and why to send emails from SAS programs Jerry Le.

Slides:



Advertisements
Similar presentations
The INFILE Statement Reading files into SAS from an outside source: A Very Useful Tool!
Advertisements

DAY 10: MICROSOFT EXCEL – CHAPTER 8 MICROSOFT EXCEL – CHAPTER 9 MICROSOFT EXCEL – CHAPTER 10 Akhila Kondai September 23, 2013.
Slide C.1 SAS MathematicalMarketing Appendix C: SAS Software Uses of SAS  CRM  datamining  data warehousing  linear programming  forecasting  econometrics.
A “LOTTO” SAS for you! or, “Check Your Balls with SAS Arrays” By Keith McWhorter Georgia Technology Authority January 30, 2007.
Your tool to help you build a list of Subscribers.
MASUG December 5, Agenda Announcements Announcements Tips & Tricks Tips & Tricks Presentation: Presentation: Working Smarter, Not Harder with DDE:
Customizing Outlook. Forms Window in which you enter and view information in Outlook Outlook Form Designer The environment in which you create and customize.
Exploring Microsoft Office Outlook Microsoft Outlook 2000 A Desktop Information Manager By Robert T. Grauer Maryann Barber.
COS/PSA 413 Day 17. Agenda Lab 8 write-up grades –3 B’s, 1 C and 1 F –Answer the Questions!!! Capstone progress report 2 overdue Today we will be discussing.
Basic And Advanced SAS Programming
Browser and Basics Tutorial 1. Learn about Web browser software and Web pages The Web is a collection of files that reside on computers, called.
SEND AUTOMATED MAIL AND FROM EX Ye Olde-Timey Proceffe Automationne.
CPSC 203 Introduction to Computers Lab 33 By Jie Gao.
Form Handling, Validation and Functions. Form Handling Forms are a graphical user interfaces (GUIs) that enables the interaction between users and servers.
SmartLog X 3 TEAM Basic SmartLog X 3 TEAM Basic DescoEMIT.com USER STATUS USER EDIT TEST LOG ADMIN TEST MACHINE SCHEDULE INSTALL System Requirements:
Drill-down Graphs By Heather Hoffman. Family Practice Department Project  Create drill-down graphs that depict % of patients for each CCS* over a given.
Copyright © 2006, SAS Institute Inc. All rights reserved. Enterprise Guide 4.2 : A Primer SHRUG : Spring 2010 Presented by: Josée Ranger-Lacroix SAS Institute.
Introduction to Internet Engineering Tutorial 7 All about Assignment 2 By Tse Hok
NetTech Solutions Sharing Presentations with Others Lesson 3.
Creating Your PE Webshop Using SmartStore.biz This Tutorial assumes you have downloaded the software from This tutorial is based.
Today’s Topic Language of web page - HTML (Hypertext Markup Language)
PROC REPORT organizes the output in many ways, from the simple to highly complex… PROC REPORT NOWINDOWS HEADLINE HEADSKIP; COLUMN variable-list; DEFINE.
Mid-West Tri State Users Group Meeting Agenda l Overview of Event, Condition, Action (ECA) l What’s new in release 7.0 l Designing effective workflows.
Introduction to SAS. What is SAS? SAS originally stood for “Statistical Analysis System”. SAS is a computer software system that provides all the tools.
Setting Up an on-line Store Tutorial Using SmartStore.biz This Tutorial assumes you have downloaded the software from This Tutorial.
Managing Information Using Outlook Appendix Microsoft Office 2003 Illustrated Introductory.
Web Scripting [PHP] CIS166AE Wednesdays 6:00pm – 9:50pm Rob Loy.
Print, Archive and Baan reports made easy and automatic B2 Standard 6.2.
1 Back Up with Each Submit One approach for keeping a dynamic back up copy of your current work.
01/20151 EPI 5344: Survival Analysis in Epidemiology SAS code and output February 24, 2015 Dr. N. Birkett, School of Epidemiology, Public Health & Preventive.
5/30/2010 SAS Macro Language Group 6 Pradnya Nimkar, Li Lin, Linsong Zhang & Loc Tran.
Macro Overview Mihaela Simion. Macro Facility Overview Definition : The SAS Macro Facility is a tool within base SAS software that contains the essential.
Pasewark & Pasewark Microsoft Office 2003: Introductory 1 INTRODUCTORY MICROSOFT OUTLOOK Lesson 1 – Outlook Basics and .
Forms and Server Side Includes. What are Forms? Forms are used to get user input We’ve all used them before. For example, ever had to sign up for courses.
SAS Software Version 8 The Output Delivery System.
Concepts  messages are passed through the internet by using a protocol called simple mail transfer protocol.  The incoming messages are.
Allows you to send Baan and ERP Ln Reports by to anyone at anytime, to print and archive, including in nightly jobs B2 Standard 6.5.
MidAmerica Technology Patrick Leone President MidAmerica Technology
Publishing to PDF SNUG Quarter 2. Overview n What is PDF? n Why use PDF? n Creating PDF files with SAS Software n Issues n Advanced PDF files with SAS.
1 ADVANCED MICROSOFT POWERPOINT Lesson 9 – Importing and Exporting Information Microsoft Office 2003: Advanced.
SAS ODS (Output Delivery System) Donald Miller 812 Oswald Tower ;
CourseWhere Guide for Instructors. To View, Print and Update Attendance and Grades Log on to CourseWhere using your ID and password Link to CourseWhere:
How to Read Outlook . Make sure the computer is on.
Creating and Using Custom Formats for Data Manipulation and Summarization Presented by John Schmitz, Ph.D. Schmitz Analytic Solutions, LLC Certified Advanced.
NetTech Solutions Microsoft Outlook and Outlook Express Lesson Four.
  is a system of electronic communication that allows the user to exchange messages over the internet  Everyone’s address is unique  Two.
Integrate, check and share documents Module 3.3. Integrate, check and share documents Module 3.3.
While You Were Sleeping… SAS Is Hard At Work Andrea Wainwright- Zimmerman.
Creativematch eCRM Creativematch has launched a new eCRM platform providing access to an marketing suite from your own desktop. Our eCRM platform.
Web Authoring with Dreamweaver. Unit Objectives  Be able to define keywords: HTML, HTTP (protocol), browser, web server, client/server, tag, attribute,
SAUSAG 69 – 20 Feb 2014 Smarter Sorts Jerry Le Breton (Softscape Solutions) & Doug Lean (DHS) Beyond the Obvious.
FORMAT statements can be used to change the look of your output –if FORMAT is in the DATA step, then the formats are permanent and stored with the dataset.
LOGIN PAGE Login Page Support CRM:
1 SAS ® ODS Technology for Today’s Decision Makers Sunil Gupta Quintiles.
– Protocols 21 – Protocols 21. – Protocols 21 Now we’ll move on to more technical aspects of This means protocols Remember.
and Network Management Presented by: Information Technology.
Creating an Electronic Mail. What is an E- mail?  is widely available via Web-based e- mail accounts.  In messages, you can create and.
How to Print a Roster for a WDCE Class Using Colleague
DOCUMENT CREATION Main Letter Type: Editor Type: Log Documents: Case
How to Setup and Utilize Functionality
Mail Merge for Lotus Notes and Excel User Guide
Automating with Job Streams
Mail Merge for Lotus Notes and Excel User Guide
How to Print a Class Roster via Colleague
(Includes setup) FAQ ON DOCUMENTS (Includes setup)
Automating SAS through the Power of VB Script
Purpose Real life scenario: I have a set of reports to refresh every month but data is only available at any day during Day 3 – 5 at beginning of each.
(Includes setup) FAQ ON DOCUMENTS (Includes setup)
Tips and Tricks for Using Macros to Automate SAS Reporting.
How to a Document Using Gmail? | GMAIL CUSTOMER SERVICE NUMBER
Presentation transcript:

ing with SAS – Jerry Le Breton, Softscape Solutions SAUSAG 40 – 19 May ing with SAS How and why to send s from SAS programs Jerry Le Breton - Softscape Solutions

ing with SAS – Jerry Le Breton, Softscape Solutions SAUSAG 40 – 19 May 2005 Why use SAS to send s?  Simple automation for distributing reports  Programmatic / conditional s  Customised s

ing with SAS – Jerry Le Breton, Softscape Solutions SAUSAG 40 – 19 May 2005 FILENAME Statement is the Key  filename mail subject="Party Invite"; attach="c:\pictures\wildparty3.jpg"; data _null_; file mail; put "Hi Jerry,"; put "The IT department is holding another of its wild parties on Friday."; put "It was the talk of the town last year. Pity you couldn't make it."; put "Attached is a picture from last time - so you can prepare yourself!"; put "Cheers, Doug"; run; Special device type Various options for sending s

ing with SAS – Jerry Le Breton, Softscape Solutions SAUSAG 40 – 19 May 2005 Controlling s in the Data Step filename mail subject="Party Invite" attach="c:\pictures\wildparty3.jpg"; data _null_; file mail subject="Wilder Party Invite" attach="c:\pictures\wildparty4.jpg"; put "Hi Sandy and Alan,"; put "Sorry - of course you're invited too."; put "Attached is an even better picture from last time."; put "Make sure the kids aren’t looking over your shoulder!"; put "Cheers, Doug"; run; FILE statement options override those on the FILENAME statement

ing with SAS – Jerry Le Breton, Softscape Solutions SAUSAG 40 – 19 May 2005 Customising s from the Data Step  Special “directives” enable filename options to be overridden / changed, for each Data step iteration. filename mailout "nul" ; data _null_; set list end=theend; retain subject 'Remember: The Wild Party is Tonight'; file mailout ; put '!EM_TO!' id; /* The TO address is on the input data set */ put '!EM_SUBJECT!' subject; /* Overrides FILE and FILNAME specification */ put 'Hi ' firstName ; /* Insert first name into first line */ /* Put the main body of the ... */ put / "Remember the IT Department's Wild Party starts at 7.00pm tonight." // "Be warned - it'll go late (at least 9.00)." // "Doug"; put '!EM_SEND!'; /* Send the now */ put '!EM_NEWMSG!'; /* Clear current attributes */ if theend then put '!EM_ABORT!'; /* Stops auto send at end of Data step */ run;

ing with SAS – Jerry Le Breton, Softscape Solutions SAUSAG 40 – 19 May ing ODS Output  To ODS output… … it’s trivial.

ing with SAS – Jerry Le Breton, Softscape Solutions SAUSAG 40 – 19 May 2005  Send HTML output directly to an  /* Sample program sending Proc output to an address */ filename outfile subject= "Sales Summary" from = to = type = "text/html"; ods html body=outfile; title j=left " Total Sales by Country and Product"; proc tabulate data =sashelp.prdsale f=dollar10. missing style=[background=beige]; class prodtype / style=[foreground=blue]; class country / style=[foreground=green]; var actual ; table country all*[style= [background=white font_weight=bold]], prodtype*actual=''; keylabel sum=' '; keyword all / style=[font_weight=light font_style=italic foreground=red]; run; ods html close; ing ODS Output The FILENAME statement does it all. Note the TYPE option for sending html. For all s these options need setting in the config file : - sys smtp - host your.smtp_server.host

ing with SAS – Jerry Le Breton, Softscape Solutions SAUSAG 40 – 19 May 2005 SAS and other ers  Can use other programs e.g. smtpsend utility (no client e.g. Outlook) data _null_; call system("smtpsend -hsmtp.softscape.net.au -f&fromid -t&toid -sFooty Update Log -ic:\footy\error_report.txt -ac:\footy\weekend_update.log"); run; h ost f rom t o s ubject i nclude(d text) a ttachment

ing with SAS – Jerry Le Breton, Softscape Solutions SAUSAG 40 – 19 May 2005 So…  ing from SAS is one more way to Automate distribution of reports Customise results Target output.  References: V8 OnlineDoc: Base SAS Software / Host Specific Information / Windows Environment / Using Groupware to Distribute SAS Data / Sending Electronic Mail Automated distribution of SAS results – Jacques Page www2.sas.com/proceedings/sugi29/ pdf

ing with SAS – Jerry Le Breton, Softscape Solutions SAUSAG 40 – 19 May 2005 Questions? Jerry Le Breton

ing with SAS – Jerry Le Breton, Softscape Solutions SAUSAG 40 – 19 May 2005 Custom s from the Data Step  Special “directives” enable filename options to be overridden, for each Data step iteration. filename mailout "nul" data _null_; set list end=theend; retain subject 'Remember SAUSAG today'; file mailout subject="Subject line" ; put '!EM_TO!' id; /* The TO address is on the input data set */ put '!EM_SUBJECT!' subject; /* Overrides FILE and FILNAME specification */ put 'Hi ' firstName ; /* Insert first name into first line */ /* Put the main body of the ... */ put / "Remember SAUSAG starts at 4.00pm today." // "See you there." // "Jerry"; put '!EM_SEND!'; put '!EM_NEWMSG!'; if theend then put '!EM_ABORT!'; run;