Developer for System z Enterprise PL/I for z/OS, Version 4.1, Language Reference
Built-in functions for controlled variables
The ALLOCATION built-in function
can be used to determine the number of generations that have been
allocated for a given controlled variable. If the variable is not
allocated, the function returns the value zero.