Rational Developer for System z
Enterprise PL/I for z/OS, Version 3.8, Language Reference Manual

FREE statement for controlled variables

The FREE statement frees the storage allocated for controlled variables. The freed storage is then available for other allocations. The previously allocated controlled variable is made available, and subsequent references refer to that allocation.

Read syntax diagramSkip visual syntax diagram         .-,-------------------.
         V                     |
>>-FREE----controlled-variable-+--;----------------------------><
 
controlled-variable
A level-1, unsubscripted variable.

Both based and controlled variables can be freed in the same statement. For the syntax of based variables, refer to FREE statement for based variables.

Implicit freeing

A controlled variable need not be explicitly freed by a FREE statement. However, it is a good practice to explicitly FREE controlled variables.

All controlled storage is freed at the termination of the program.


Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)