Show TOC

About INFO Instructions Locate this document in the navigation structure

An INFO instruction is used to defin and assign a value to a script variable. It is not an executable instruction and does not affect the package directly.

The syntax for the INFO instruction is INFO("variablename","value")

The INFO instruction parameters are defined as follows:
  • variable name is the name of the variable
  • value is the value of the variable

Instead of assigning a value directly to a task, the value (or part of it) can be replaced with the name of a variable defined in an INFO instruction. At runtime, the task replaces the name of all INFO variables found in all executable instructions with the current value of those variables, before executing the executable instructions.

The following example illustrates how to define a variable with an INFO instruction and how to use it in another instruction such as TASK:

INFO(%FILE%,IMPORT.TXT)

TASK("EVIMPORT","FILENAME", %FILE%)

You can nest one level of INFO variables inside other INFO variables as in the following example:

INFO(%PATH%,"C:\MyDir\")

INFO(%FILE%,%PATH%IMPORT.TXT)

ITASK("EVIMPORT","FILENAME", %FILE%)

Note We recommend the use of expressions that are enclosed between some easily identifiable characters such as the % character for example, %VARIABLE%, which makes the script more readable and less subject to errors when the substitutions are performed.

All system-generated INFO variables comply with this practice.