PS_RUN_PROCESS
Use the PS_RUN_PROCESS script element to create a process request for a PeopleSoft process and monitor its execution. The end of the PeopleSoft process is recognized based on its run status, which is stored in the PeopleSoft database. Some parameters of this script element depend on the PeopleSoft version you use, as indicated in the syntax.
Interface: PROCESSREQUEST and PROCESSREQUEST_SBB
PeopleSoft Version: 8+
Syntax
PS_RUN_PROCESS PROCESSNAME=...,PROCESSTYPE=...,RUNLOCATION=...,RUNCONTROLID=...[,OUTPUTDEST=...][,OUTDESTTYPE=...][,OUTDESTFORMAT=...][,OUTREGISTER=...][,REPLICATE=...]
Parameters
| Parameter | Description | Format | Allowed Values | Default Value |
|---|---|---|---|---|
| PROCESSNAME= | Name of the PeopleSoft process to initialize 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. |
| PROCESSTYPE= | Process type of the PeopleSoft process | Script literal | n.a. | n.a. |
| RUNLOCATION= | 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 process name refers to. |
Script literal | n.a. | n.a. |
| RUNCONTROLID= | Run Control ID of the PeopleSoft process | Script literal | n.a. | n.a. |
| OUTPUTDEST=
(Optional) |
Directory to which the PeopleSoft process writes its output | Script literal | n.a. | n.a. |
| OUTDESTTYPE=
(Optional) |
Output type of the PeopleSoft process, 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 process, 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 first example runs the THR200 PeopleSoft process of process type SQR Report.
PS_RUN_PROCESS PROCESSNAME='THR200',PROCESSTYPE='SQR Report',RUNLOCATION='PSUNX',RUNCONTROLID='mlc',OUTPUTDEST='/tmp/'
The second example uses optional parameters to store the output of the PeopleSoft process in a temporary directory as a PDF file.
PS_RUN_PROCESS PROCESSNAME='DDDAUDIT',PROCESSTYPE='SQR Report',RUNLOCATION='PSNT',RUNCONTROLID='sbb',OUTDESTTYPE='FILE',OUTDESTFORMAT='PDF',OUTPUTDEST='c:\temp'
See also: