Previous Topic

Next Topic

Book Contents

Book Index

Variables

KSL variables can be used to add flexibility to a KSL script. These variables are assigned using a KSL command (such as SETVAR) and are resolved during the run of the KSL script.

A KSL variable must start with % and can be 2 through 40 characters long. A blank designates the end of the variable name.

Note: The second character in a KSL variable name must not be a percent sign. KSL assumes that a variable beginning with %% is an AutoEdit variable. If a KSL script is to search for a prerequisite condition whose name begins with a single percent sign (%), KSL assumes it is a KSL user-defined variable and does not recognize the searched-for condition.

KSL variables are only accessible by the KSL script in which they are defined. A reference to the same variable in another command member (or in another invocation of the same command member) is totally independent and has no effect on the current member environment.

When an expression contains both KSL and special AutoEdit variables and functions, KSL variables are resolved first.

For more information about syntax and KSL variables, see Language Syntax.

Parent Topic

KSL commands and variables