Previous Topic: EMAILLOG Statement—Specify Whether to Email PeopleSoft Job LogsNext Topic: EMAILTEXT Statement—Define the Body Text of an Email


EMAILSUBJECT Statement—Define an Email Subject

The EMAILSUBJECT statement defines an email subject to include in the email to distribute to recipients of a PeopleSoft report.

Note: To use this statement, you must specify EMAIL or WEB in the OUTDESTTYPE statement.

Supported Job Type

This statement is optional for the PeopleSoft job type.

Syntax

This statement has the following format:

EMAILSUBJECT subject_text
subject_text

Defines an email subject to include in the email. This value corresponds to the Email Subject field in PeopleSoft.

Limits: Up to 256 characters; case-sensitive

Note: Enclose values that contain delimiters (such as spaces) in double quotation marks.

Example: Include an Email Subject in an Email

This example runs a Crystal report and emails the output to recipients. The Crystal report runs under the VP2 operator ID. The output is sent to the email addresses specified in the EMAILADDR statement. The email includes a subject title and body text.

AGENT PSAGENT
EMAILADDR 'user1@example.com;user2@example.com'
OUTDESTTYPE EMAIL
OUTDESTFORMAT PDF
PSOPRID VP2
EMAILSUBJECT 'PeopleSoft Report Status'
EMAILTEXT 'The report is available for distribution'
PROCESSNAME XRFWIN
PROCESSTYPE Crystal