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

Storage control

Storage classes, allocation, and deallocation
Static storage and attribute
Automatic storage and attribute
Controlled storage and attribute
ALLOCATE statement for controlled variables
FREE statement for controlled variables
Multiple generations of controlled variables
Asterisk notation
Adjustable extents
Built-in functions for controlled variables
Based storage and attribute
Locator data
POINTER variable and attribute
Built-in functions for based variables
ALLOCATE statement for based variables
FREE statement for based variables
REFER option (self-defining data)
Area data and attribute
Offset data and attribute
Built-in functions for area variables
Area assignment
Input/output of areas
List processing
ASSIGNABLE and NONASSIGNABLE attributes
NORMAL and ABNORMAL attributes
BIGENDIAN and LITTLEENDIAN attributes
HEXADEC and IEEE attributes
CONNECTED and NONCONNECTED attributes
DEFINED and POSITION attributes
Unconnected Storage
Simple Defining
iSUB Defining
String Overlay Defining
POSITION attribute
INITIAL attribute
Initializing array variables
Initializing unions
Initializing static variables
Initializing automatic variables
Initializing based and controlled variables
Examples

All variables require storage. The attributes specified for a variable describe the amount of storage required and how it is interpreted. In the following example a reference to X is a reference to a piece of storage that contains a value to be interpreted as fixed-point binary.

  dcl X fixed binary(31,0) automatic;

Since X is automatic, the storage for it is allocated when its declaring block is activated, and the storage remains allocated until the block is deactivated.


Terms of use | Feedback

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