Previous Topic: Defining PeopleSoft JobsNext Topic: Send the Output of a PeopleSoft Job to a File


Distribute a PeopleSoft Report

If you specify EMAIL or WEB as the output destination type (OUTDESTTYPE), you can distribute a PeopleSoft report electronically to operators, groups of people, or individuals.

To distribute a PeopleSoft report

  1. Add the OUTDESTTYPE statement to the job definition. Specify EMAIL or WEB.
  2. Add the DISTRLISTROLES statement to distribute the report using a distribution list of roles.

    To specify multiple roles to distribute the report to, separate each role with a comma and enclose the entire list of roles in single quotes.

  3. Add the DISTRLISTUSERS statement to distribute the report using a distribution list of operator IDs.

    To specify multiple operator IDs to distribute the report to, separate each operator ID with a comma and enclose the entire list of operator IDs in single quotes.

  4. Add the EMAILADDR statement to distribute the report using a distribution list of email addresses.

    To specify multiple email addresses, separate each address with a semi-colon and enclose the entire list of addresses in single quotes.

  5. (Optional) Add the following statements to specify additional distribution information:

Example: Distribute a Report to Operators

This example runs a Crystal report under the VP3 operator ID. The report is formatted as PDF and distributed in an email to the VP1, VP2, and VP3 operator IDs.

AGENT PSAGENT
PROCESSTYPE Crystal
PROCESSNAME XRFWIN
OUTDESTTYPE EMAIL
OUTDESTFORMAT PDF
PSOPRID VP3
RUNCONTROLID test
DISTRLISTUSERS 'VP1,VP2,VP3'

Example: Email a PeopleSoft Report

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