:PSET

Use the :PSET statement to assign a value to an object variable. Object variables are stored on the Variables page in the object definition. These variables can be passed within the object, or to other tasks in the Workflow that use the object. The modified value applies to the current execution of the task only, and is not permanently stored in the object itself.

The :PSET statement first replaces or adds the object variable to the current task. :PSET also replaces or adds the object variable in the parent object. This statement can only pass values up one level, to the parent object, which is also known as the processor. The statement does not pass values up higher than one level, so you cannot pass object variables the to grandparent or great-grandparent of the task. :PSET lets other child tasks of a Workflow inherit variables set by another child task.

Syntax

:PSET Object variable = Value

Parameters

Important!

Notes:

More Information:

Example

A Workflow contains two objects. One is a File Transfer object that is called MM.GET.FILES, the other is a Job that is called MM.END.PROCESSING. In both objects, the Generate Task at Runtime setting is configured. Assume that the File Transfer object check the environment to select the appropriate agent. When the Job runs, the check determines that the UNIX Agent is required.

The following script statement changes the object variable &HOST# to the UNIX Agent:

:PSET  &HOST# = "unix01"

See also:

seealso

GET_PUBLISHED_VALUE

:FILL