Global Variables

The following are classes of NetView® global variables:
  • Task global variables are accessible to any command procedure running under the task, as well as from the automation table using the DSITGLOB automation table function (ATF). Task global variables can be set to null, but when the variables are created, some storage is allocated for the variables until the task ends.
  • Common global variables are accessible by any command procedure running under the NetView program from the automation table using the DSICGLOB ATF. Common global variables can be set to null, but when the variables are created, some storage is allocated for the variables until the NetView program ends. Common global variables can be updated directly from any task. Access to the common global variables is serialized to provide data integrity using the system enqueue and dequeue facility.

Accessing task global variables is faster than accessing common global variables, because task global variables do not require overhead of the system enqueue and dequeue facility. Keep this in mind when deciding whether to use task or common global variables for an application.