Environment Variables for System Commands

The agent sets environment variables that can be accessed by System Command tasks. These environment variables are specific to each System Command task that is run.

Environment Variable

Description

ZENA_AGENTID

The definition ID of the agent.

ZENA_AGENTNAME

The name of the agent.

ZENA_AGENTUID

A unique identifier for the agent that stays the same, even if the name changes.

ZENA_PROCESSID

The run ID of the process. The first column in Operations  Processes.

ZENA_PROCESSNAME

The process name from the definition.

ZENA_PRODUCTIONDATE

The production date, in dot notation. (i.e., 2006.12.05 = the 5th of December 2006 [YYYY.MM.DD]).

ZENA_RUNCOUNT

The run number.

  • 1 - The first run.
  • 2- The first rerun, etc.

ZENA_SERVERNAME

A unique identifier for the Scheduler cluster. This relates to an instance of the database.

ZENA_TASKID

The ID of the task within the process.

ZENA_TASKNAME

The name of the task from the definition.

ZENA_UNIQUETASKID

An identifier created by combining server ID, task ID, process ID, and run count. It can be used to create a unique temporary file or tag.