O'Reilly logo

SAS 9.4 Language Reference, 6th Edition by SAS Institute

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Statements That Control SMTP E-mail
FILENAME Statement
In the FILENAME statement, the EMAIL (SMTP) access method enables you to send e-
mail programmatically from SAS using the SMTP e-mail interface. For more
information, see the “FILENAME Statement” in SAS Statements: Reference.
FILE and PUT Statements
You can specify e-mail options in the FILE statement. E-mail options that you specify in
the FILE statement override any corresponding e-mail options that you specified in the
FILENAME statement.
In the DATA step, after using the FILE statement to define your e-mail fileref as the
output destination, use PUT statements to define the body of the message. The PUT
statement directives override any other e-mail options in the FILE and FILENAME
statements.
Statements That Control SMTP E-mail 767
768 Chapter 38 The SMTP E-Mail Interface

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required