Developer for System z Enterprise PL/I for z/OS, Version 3.8, Language Reference Manual
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.