PS_RUN_JOB
Use the PS_RUN_JOB script element to start a PeopleSoft job and monitor its execution. You can use a PeopleSoft job to run several PeopleSoft processes at the same time or one after the other.
Important!
-
This script element requires the administrator to install and activate the PROCESSREQUEST_SBB interface in the agent's INI file.
-
PS_RUN_JOB does not work with inline bind variables. For more information, see Using Bind Variables.
Interface: PROCESSREQUEST_SBB
PeopleSoft Version: 8+
Syntax
PS_RUN_JOB JOBNAME=...,RUNCONTROLID=...[,RUNLOCATION=...][,OUTPUTDEST=...][,OUTDESTTYPE=...][,OUTDESTFORMAT=...][,OUTREGISTER=...][,REPLICATE=...]
Parameters
| Parameter | Description | Format | Allowed Values | Default Value |
|---|---|---|---|---|
| JOBNAME= | Name of the PeopleSoft job to start and monitor. Note: The name refers to the definition in the PeopleSoft Process Scheduler. If you use the RUNLOCATION parameter, the name of the assigned Process Scheduler Batch Server must also comply with that definition. |
Script literal | n.a. | n.a. |
| RUNCONTROLID= | Run Control ID of the PeopleSoft job | Script literal | n.a. | n.a. |
| RUNLOCATION=
(Optional) |
Name of an assigned PeopleSoft Process Scheduler Batch Server, such as PSUNX or PSNT. Note: The name of the assigned Process Scheduler Batch Server must comply with the definition in the PeopleSoft Process Scheduler that the JOBNAME parameter refers to. |
Script literal | n.a. | n.a. |
| OUTPUTDEST=
(Optional) |
Directory to which the PeopleSoft job writes its output | Script literal | n.a. | n.a. |
| OUTDESTTYPE=
(Optional) |
Output type of the PeopleSoft job, such as file, printer, or email. To see all valid values, run the following query:
select XLATSHORTNAME from XLATTABLE where FIELDNAME = 'OUTDESTTYPE'; |
Script literal | n.a. | n.a. |
| OUTDESTFORMAT=
(Optional) |
Output format of the PeopleSoft job, such as TXT, HTM, or PDF. To see all valid values, run the following query:
select XLATSHORTNAME from XLATTABLE where FIELDNAME = 'OUTDESTFORMAT'; |
Script literal | n.a. | n.a. |
| OUTREGISTER=
(Optional) |
Indicates whether the output file generated by the PeopleSoft command is registered in the Automation Engine.
Note the following about the generated output file:
|
n.a. |
|
NO |
| REPLICATE=
(Optional) |
Indicates whether child jobs/processes are registered as JOBDs in the Automation Engine. If set to YES, they are displayed in the Tasks list of the Process Monitoring perspective. | n.a. | n.a. | n.a. |
Examples
The following example uses optional parameters to store the PeopleSoft job's output in a temporary directory as an SPF file.
PS_RUN_JOB JOBNAME='3SQR',RUNCONTROLID='sbb',RUNLOCATION=PSNT,OUTDESTTYPE='FILE',OUTDESTFORMAT='SPF',OUTPUTDEST='c:\temp'
See also: