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

Type functions

Since type names are in a separate name space from declared names, they cannot be used where variable references are required, in particular as arguments to built-in functions. However, type names can be used as arguments to type functions. (In ANSI terminology, these type functions are known as enquiry functions.) These type functions are listed in Table 24.

Table 24. Type functions
Function Description
BIND Converts a pointer to a handle for a type
CAST Converts an expression to a specified type using C conversion rules
FIRST Returns the first value in an ordinal set
LAST Returns the last value in an ordinal set
NEW Acquires storage for a structure type and returns a handle to the acquired storage
RESPEC Changes the attributes of an expression to a specified type without changing the bit pattern of the expression
SIZE Returns the amount of storage needed to represent a type

Descriptions for these type functions can be found in Type Functions.


Terms of use | Feedback

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