SYS_ACT_HOST

Note: The retrieved Agent is the actual agent on which the task runs. The Agent may differ from what has been defined in the task properties, because a user or a :PUT_ATT script statement may change the Agent for a particular execution.

Syntax

SYS_ACT_HOST ()

Example

The following example assigns a retrieved Agent name to a script variable. The script uses thes script variable as a first parameter of the script function GET_FILESYSTEM to count files in a temporary directory.

:SET &HOST# = SYS_ACT_HOST()
:
SET &NUMBER# = GET_FILESYSTEM(&HOST#,"c:\temp\*.exe","PATH_FILE_COUNT")

See also:

seealso

Script Elements for Handling Tasks