Previous Topic: DBCS Support and Lowercase Data

Next Topic: NCL Table Manipulation

Variables and Storage Usage

Variables hold the data your procedures work with. This data occupies virtual storage in your product region or partition. Therefore, the more variables you create the more storage your procedures will use.

While your product attempts to optimize storage usage, you should design your procedures to control the use of variables and avoid creating large numbers of variables that are seldom referenced.

If the temporary use of an extremely large number of variables is required, then assign a null value to these variables when they are no longer required to delete them and reduce the storage required by the procedure.

The &ASSIGN statement can be used to nullify large groups of variables in a single operation.

All storage used for NCL variables resides above the 16 MB line.