02.05.2013 Views

SAS(R) 9.1.3 Companion for z/OS

SAS(R) 9.1.3 Companion for z/OS

SAS(R) 9.1.3 Companion for z/OS

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

378 FILENAME Statement Chapter 17<br />

FROM=‘from-address’<br />

identifies the sender of the e-mail message. The address appears on the From line<br />

of the outgoing message. The default value is the userid and hostname of the user<br />

who is running <strong>SAS</strong>. The following example specifies a name with the address:<br />

from=’John Smith ’<br />

SUBJECT=‘subject’<br />

specifies the subject of the message. If the subject text is longer than one word<br />

(that is, it contains at least one blank space), you must enclose it in quotation<br />

marks. You also must use quotation marks if the subject contains any special<br />

characters. For example, subject=Sales and subject=‘June Report’ are valid<br />

subjects. Any subject that is not enclosed in quotation marks is converted to<br />

uppercase.<br />

TYPE=’content-type’<br />

specifies the content type of the main message body, <strong>for</strong> example:<br />

type=’text/plain’<br />

type=’text/html’<br />

type=’image/gif’<br />

Enclose the value <strong>for</strong> TYPE in single or double quotation marks.<br />

ATTACH=”physical-filename”;<br />

specifies, inside double quotation marks, the physical filename of one or more files<br />

to attach to the outgoing message. In addition, you can specify a content type,<br />

extension, and name <strong>for</strong> each attachment by specifying the CONTENT TYPE=,<br />

EXTENSION=, and NAME= options <strong>for</strong> each filename.<br />

CONTENT_TYPE=‘content/type’<br />

specifies the content type of the attached file. CT=, CONTENT=,<br />

CONTENT-TYPE, and TYPE= are all synonyms <strong>for</strong> CONTENT_TYPE=. The<br />

purpose of this option is to cause the correct MIME header to be included in<br />

the mail file. The default CONTENT_TYPE is text/plain.<br />

EXTENSION=‘extension’<br />

specifies the filename extension on the file that is attached. This extension is<br />

used by the recipient’s e-mail system <strong>for</strong> selecting the appropriate utility to<br />

display the attachment. The default attachment extension is "txt". EXT= is a<br />

synonym <strong>for</strong> EXTENSION=.<br />

NAME=‘name’<br />

specifies a name to be used <strong>for</strong> the attachment instead of the physical<br />

filename:<br />

The following examples show the syntax <strong>for</strong> attaching a single address and<br />

multiple addresses with and without the optional content type, extension, and<br />

name:<br />

attach="user.misc.pds(member)"<br />

attach=("user.misc.jcl(sasjcl)" "userid.sas.output")<br />

attach=("user.misc.jcl(sasjcl)" extension=’doc’<br />

"userid.sas.output" content_type=’image/gif’ extension=’gif’<br />

name=’Test Results’)<br />

If you specify more than one address, enclose the list of addresses in<br />

parentheses.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!