Previous Topic: Predefined Variables

Next Topic: External Subroutines

Global Variables

Global variables are REXX variables that begin with an ampersand (&). One copy of each global variable is maintained in an ISERVE address space, and all IMODs executing in this address space have access to it. In this way, information can be shared by multiple IMODs and multiple executions of the same IMOD. Global variables are initialized using the GLOBVAL initialization parameter.

Note: An uninitialized global variable has a null value, rather than being equal to the variable name.

Global variables have the following restrictions: