Previous Topic: DR Statement—Specify Whether to Disable the Restart Feature for Failed PeopleSoft JobsNext Topic: EMAILADDR Statement—Email Spool File on ABAP Completion or Failure (SAP Jobs)


EMAILADDR Statement—Specify the Email Addresses on a Distribution List (PeopleSoft Jobs)

The EMAILADDR statement specifies the email addresses of the recipients on a distribution list. The PeopleSoft report is emailed to the recipients.

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:

EMAILADDR address|'address;address...'
address

Specifies an email address on a distribution list to send the report to. This value corresponds to the Email Address List field in PeopleSoft.

Limits: Case-sensitive

Notes:

Example: Send a PeopleSoft Report to Two Email Addresses

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