Previous Topic: FUNCTION

Next Topic: GOALNET

GLOBVAL

Use the GLOBVAL parameter to provide initial values for global variables.

Syntax

Use this format for the GLOBVAL parameter:

GLOBVAL &var {d}value{d} [SIZE size]

Arguments

The GLOBVAL parameter takes these arguments:

Argument

Description

&var

Name of the variable to be initialized. It must begin with an ampersand. Global variable names are case-sensitive.

D

Arbitrary delimiter character. You must enclose the value to be assigned within delimiters of your choice. The delimiter can be any character, except blank, that is not contained in value.

Value

Value to be assigned to the global variable. This value is concatenated to the global variable's current value, if any. You can code the GLOBVAL parameter multiple times for the same global variable in order to assign longer strings than can be accommodated on a single parameter line.

Size

Global variables are normally limited to 80 characters of storage. You can override this value by including a value for the size argument. Specify a value from 80 to 32000.

Once allocated, a global variable's maximum size is fixed. If you are coding multiple GLOBVAL statements for the same variable (to assign a long value) only the first statement needs a size specification.

Usage Notes

Global variables begin with an ampersand (&) and are common to all IMOD tasks. They differ from REXX variables in that an uninitialized global variable has a null value (as opposed to its name).