DSZ Variable - BBj

For this topic's original documentation, see the DSZ Variable - Get Available User Memory.

BBj-Specific Information

While PRO/5 uses a fixed workspace allocated by the -m parameter or the START verb, BBj uses whatever memory was allocated to the JVM in which it is running.

In BBj, DSZ returns the amount of available memory, a value that changes from instant to instant. For example, the following will return three distinct numbers:

PRINT dsz,dsz,dsz

In PRO/5, DSZ returns the amount of available memory (data size), and is a stable and deterministic value -- if you START PRO/5 with a certain amount of memory and allocate a given set of variables, DSZ will return a predictable value.

See Also

Variables - Alphabetical Listing