Replaces the value of a bind variable in a process definition.
Interface: PROCESSREQUEST_SBB
PeopleSoft Version: 8+
PS_SET_BINDVAR
NAME=...
,MODE='V'
,VALUE=...
PS_SET_BINDVAR
NAME=...
,MODE='D'
,RUNCONTROLID=...
Syntax |
Description/Format |
---|---|
NAME= |
Name of the bind variable that should be replaced. |
MODE= |
Type of replacement. Allowed values: "V" and "D" "V" - The value is predetermined with the parameter "VALUE=". |
VALUE= |
Value that should be used for the replacement. |
RUNCONTROLID= |
Specification of a Run Control ID. |
To use this script element, you must follow the instructions in the "Configuration for using bind variables" section in the agent's new installation description. This section describes how you can create process types. Afterwards, you assign the process types to the Process Scheduler Server and then you restart the Process Scheduler Server in order to assume these modifications.
The following two examples show how a predetermined value and a Run Control ID can be used in order to replace bind variables:
PS_SET_BINDVAR NAME=':RUN_CNTL_HR.COURSE',VALUE='K014',MODE='V'
PS_RUN_PROCESS PROCESSNAME='TRN023--',PROCESSTYPE='Crystal',RUNCONTROLID='ang',RUNLOCATION='PSNT'
PS_MODIFY_RUNCONTROL RUNCONTROLID='ang',RECORDNAME='RUN_CNTL_HR',FIELDNAME='COURSE',FIELDVALUE='K014'
PS_SET_BINDVAR NAME=':RUN_CNTL_HR.COURSE',VALUE='',MODE='D',RUNCONTROLID='ang'
PS_RUN_PROCESS PROCESSNAME='TRN023--',PROCESSTYPE='Crystal',RUNCONTROLID='ang',RUNLOCATION='PSNT'
See also:
Using Bind Variables
About PeopleSoft JCL