$SPACE
The $SPACE statement forces KCML to compact its dynamic memory heap and release as much memory as possible back to the operating system.
An implied $SPACE is performed internally by KCML after a LOAD when there is maximum oportunity to reclaim unused memory.
You may wish to use this function explicitly if you have freed a large amount of user memory by setting array or string dimensions to zero with REDIM.
See also: