Chapter 7: Advanced Tasks

Introduction

Sending Email

A Single Message

Multiple Messages

Running Code in Parallel

Using MPCONNECT

Striping Data

Simulating Recursion

Reading Metadata

Using the XML LIBNAME Engine

Introduction

This chapter includes examples of more advanced tasks that you can do with SAS. These examples are useful as demonstrations of what you can make SAS software do for you.

Sending Email

I often send emails from a SAS program, particularly to report success, warnings, and errors for automated production programs.  The only caveat when you use SAS to send emails is that you must be using the Simple Mail Transfer Protocol (SMTP) email interface. You need to have the EMAILHOST= and EMAILSYS= options set in your SAS session to send ...

Get Practical and Efficient SAS Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.