What is the calculation performed by OPS to indicate the global variable workspace is near full?

Document ID : KB000124441
Last Modified Date : 17/01/2019
Show Technical Document Details
Introduction:
When the space allocated for global variables reaches the valued indicated by the parameter GLOBALWARNTHRESH the message below is issued: 

OPS4290O GLOBAL VARIABLE WORKSPACE IS xx.x% FULL
Question:
What is the calculation performed by OPS to indicate the global variable workspace reached the threshold value?
Answer:
The threshold warning is actually determined by GLOBALBLOCKSUSED / GLOBALMAX. This percentage is the number monitored by GLOBALWARNTHRESH .
GLOBALALLOC is the sum of GLOBALBLOCKSUSED and GLOBALFREE.
LOBALFREE has the number of blocks that have been allocated and freed later.