*MAXCOUNTERS (GETMODE)
The *MAXCOUNTERS list control returns the number of runtime counters that are implemented.
*MAXCOUNTER={value}
Where:
{value}
A numeric variable that receives the maximum number of counters that are returned by the ALLCOUNTERS keyword.
Flags: ZERO,OVER
Note:
The number of counters implemented by the runtime may change for later runtime releases.
The MAXCOUNTERS value calculates the size of the DIM required to store all of the counters with a maximum 64-bit value. The DIM size can be calculated as follows:
DIMSIZE = ( maxcount * 42 )
20 byte Counter Name Maximum
20 byte Counter Value Maximum
1 byte equal sign character
1 byte comma delimiter character
The MAXCOUNTERS value determines the number of loops needed to extract all of the counters from the ALLCOUNTERS destination variable.
See Also: List Controls (GETMODE), GETMODE
![]() |