The CICS interface provides a mechanism to monitor and control CLI use of memory.
In particular, CICS getmain/freemain overhead can be reduced by using the HSHSPBC and the DMEM command to maintain a number of control blocks and buffers on a free chain to satisfy application requests.
When allocating memory, CLI first attempts to satisfy the request from the free chain.
If the chain is empty, a CICS getmain is used to obtain the memory.
Statistics are maintained and are displayed with DMEM to monitor and control CLI memory usage. Refer to Controlling Memory.