Rational Developer for System z
Enterprise PL/I for z/OS, Version 3.8, Language Reference Manual

Initializing static variables

For a variable that is allocated when the program is loaded, that is, a static variable, which remains allocated throughout execution of the program, any value specified in an INITIAL attribute is assigned only once. (Static storage for fetched procedures is allocated and initialized each time the procedure is loaded.)

If static variables are initialized using the INITIAL attribute, the initial values must be specified as restricted expressions. Extent specifications must be restricted expressions.

The restrictions on initializing static variables are as follows:


Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)