Stay Connected to Work Away from Work: A Simple Approach to Send Emails from SAS® using VBScript Paper #124-2018.

Slides:



Advertisements
Similar presentations
Kalpesh Vyas & Seward Khem
Advertisements

ACDV B50 Joyce Kirst. Content Consider whether what you have to say is best said through Consider whether the person you are writing to needs to.
1. What is Fax Forwarding? What is Fax Forwarding? Why use it? Why use it?  It will save paper and toner.  It can be distributed electronically. How.
.  The sender and recipient(s) of an message do not have to be online at the same time. When one person sends a message, it is stored on an.
Contacts. Stored in the Contact folder Stores information about businesses or people –Address, phone number, address etc.
1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 1 v3.0 Module 11 TCP/IP Transport and Application Layers.
How does a simple protocol like the protocol SMTP work 1. Open telnet connection Do remote login to the system you want to send to Note: You.
Understanding and Building Basic Networks Chapter 3 The Other Internet.
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.
Series DATA MANAGEMENT. 1 Why ? Alarm/Status Notification –Remote unattended sites »Pumping stations –Pharmaceutical/Plant maintenance.
Chapter 30 Electronic Mail Representation & Transfer
Introduction to the Secure SMTP Server service. Secure SMTP server is a secure, reliable SMTP mail relay server for your outgoing mail. Secure SMTP service.
Pro Exchange SPAM Filter An Exchange 2000 based spam filtering solution.
Chapter 6: Hostile Code Guide to Computer Network Security.
Outlook Web Access (OWA) is a web mail service of Microsoft Exchange; allow users to connect remotely via a Web browser OWA is used to access ,
Sage CRM Developers Course Programming for the Advanced Manager.
E – Mail History of s What is an ? What happens when we sent an ? messages Folders Address Attachments Types of.
1 What is Electronic Mail Exchanging information via computer networks Electronic mail addresses SMTP (Simple Mail Transfer Protocol) Client/Server based.
E- MAIL APPLICATION CALENDAR MODUL. B ENEFITS OF CALENDAR Calendar sharing. Outlook Web App now enables your users to share their calendars with people.
Unit 9 Communication Services
Outlook 2000 Summertime Technology 2002 Vicki Blackwell Tangipahoa Parish Schools.
IT 424 Networks2 IT 424 Networks2 Ack.: Slides are adapted from the slides of the book: “Computer Networking” – J. Kurose, K. Ross Chapter 2: Application.
Computer Networking From LANs to WANs: Hardware, Software, and Security Chapter 12 Electronic Mail.
Unit 10 Communication Services.  Identify types of electronic communication  Describe users of electronic communication  Identify major components.
9/15/2015© 2008 Raymond P. Jefferis IIILect Application Layer.
Simple Mail Transfer Protocol (SMTP)
Open Source Server Side Scripting ECA 236 Open Source Server Side Scripting Includes and Dates.
1 Using Messages sent from machine to machine and stored for later reading. You will use a client to read –Type mail or pine in UNIX to read.
A little PHP. Enter the simple HTML code seen below.
The In’s and Out’s of the IIS 6.0 Migration Tool The In’s and Out’s of the IIS 6.0 Migration Tool Chris Adams Web Platform Supportability Lead Microsoft.
Unit 10 Communication Services
What is and How Does it Work?  Electronic mail ( ) is the most popular use of the Internet. It is a fast and inexpensive way of sending messages.
By: Star Duncan & Hannah Cole Computer Apps 4 th Period.
CCNA 1 v3.0 Module 11 TCP/IP Transport and Application Layers.
Automated Scheduling and Operations for Legacy Applications.
Preparing s Using Etiquette Lesson A4-3.
Introducing Microsoft Outlook Session Version 1.0 © 2011 Aptech Limited.
Topics Sending an Multipart message Storing images Getting confirmation Session tracking using PHP Graphics Input Validators Cookies.
Preparing s Using Etiquette. Learning Objectives Define . List the parts of an and an header. List rules for etiquette.
Introduction to JavaScript CS101 Introduction to Computing.
How does a simple protocol like the protocol SMTP work 1. open telnet & do remote login in to the system you want to send to.
XP New Perspectives on The Internet, Sixth Edition— Comprehensive Tutorial 2 1 Evaluating an Program and a Web-Based Service Basic Communication.
Outlook Web Access (OWA) is a web mail service of Microsoft Exchange; allow users to connect remotely via a Web browser OWA is used to access ,
(Electronic Mail) a message sent and received electronically via telecommunication links between computers.
COMP 431 Internet Services & Protocols
XP Exploring Outlook  Outlook is a powerful information manager  You can use Outlook to perform a wide range of communication and organizational tasks,
By: Derek Ton & Alex Pappas.  Most frequently used internet service that you will manage as network administrator.  You need to understand how they.
A little PHP. Enter the simple HTML code seen below.
Using Using Computers Safely, Effectively and Responsibly.
& FAX function in LRP For Agents Internal Circulation Only Presentation by: ESL Process Engineering Team.
Unit 9 Communication Services.  Describe the components for electronic communication  Explain the purpose of usernames, passwords, and credentials 
Architecture Review 10/11/2004
A little PHP.
Outlook: Tips and Tricks
Networking CS 3470, Section 1 Sarah Diesburg
Web Development Web Servers.
Setup and Scheduling Reports
PHP / MySQL Introduction
(Includes setup) FAQ ON DOCUMENTS (Includes setup)
An Overview.
Chapter 27 WWW and HTTP.
Chapter 8: Monitoring the Network
Networking CS 3470, Section 1 Sarah Diesburg
Our Wireless Enterprise Help Desk (WEHD) is here to assist you 24 hours a day, 7 days a week, 365 days a year. We also have our own private number.
William Stallings Data and Computer Communications
Automate Repetitive Programming Tasks: Effective SAS® Code Generators
Automating SAS through the Power of VB Script
Mrs. Hollensbe Computer Literacy
Gmail Password Recovery
(Includes setup) FAQ ON DOCUMENTS (Includes setup)
Presentation transcript:

Stay Connected to Work Away from Work: A Simple Approach to Send Emails from SAS® using VBScript Paper #124-2018

Walkthrough Introduction Purpose Existing methods Approach Code Snippets Email system Conclusion

Introduction “The first rule of any technology used in a business is that automation applied to an efficient operation will magnify the efficiency” -Bill Gates A simple, efficient and reliable standalone approach of sending emails through SAS® and VBScript Builds Dynamic E-mail contents

Purpose Periodic statistical report generation Review of reports Share with cross functional teams Avoid Manual Errors Increase efficiency Automation

Existing methods SAS® supports three interface methods to send e-mail MAPI SMTP VIM Downside – Need to tweak SAS® configuration file

(Recipients, Attachments, HTML files/links) Approach Collaboration Data Objects (CDO) SMTP Server SAS Code E-MAIL (Recipients, Attachments, HTML files/links) VBSCRIPT ---------

SAS® Code Get required macro variables (&name &date &day &month &year) Create a format to represent the months of the year

Embedded VBScript file in SAS® code to generate e-mail

VBScript code Input to VBScript code may contain 3 strings: Optional flag to alter the Subject to inform recipients of an error Full path to attachment Semicolon separated list of email addresses

Step by Step Approach Specify VB arguments and build an Email object to pull the username from the network.  Set MyEmail=CreateObject("CDO.Message") Set objNetwork = CreateObject("Wscript.Network") Get current date stamp for log file y = year(now) m = month(now) d = day(now) if m < 10 Then m = "0" & m end if if d < 10 Then d = "0" & d end if isoDate = y & m & d

Step by Step Approach Confirm your script is called as expected Enter email subject, attach username to the e-mail domain and specify the To, Cc and Bcc parameters

Step by Step Approach Create Body from SAS® DataSet to HTML 'MyEmail.CreateMHTMLBody "<your file path>.html" Mechanism to send messages cdoSendUsingPickup (1) cdoSendUsingPort (2) cdoSendUsingExchange (3) Port Used: MyEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusing")=2

Step by Step Approach Once the messages have been picked up, they are sent to an SMTP server  MyEmail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver")="sendsmtp.<domain>“ Specify the SMTP port number and send the e-mail. MyEmail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserverp ort")=25 MyEmail.Configuration.Fields.Update MyEmail.Send set MyEmail=nothing

E-mail system

Contact Information Name: Nikita Sathish Company: Seattle Genetics City/State: Bothell, Washington Phone: (425)-527-2790 Email: nsathish@seagen.com