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

BUILTIN attribute

The BUILTIN attribute specifies that the name is a built-in function, pseudovariable, or a subroutine.

Read syntax diagramSkip visual syntax diagram>>-BUILTIN-----------------------------------------------------><
 

Built-in names can be used as programmer-defined names. BUILTIN can be declared for a built-in name in any block that has inherited, from a containing block, a programmer-defined declaration or use of the same name. The following example shows built-in names with the BUILTIN attribute.

Example 1

 

 1    A: procedure;
         declare Sqrt float binary;
 2       X = Sqrt;

 3      B:  Begin;
           Declare Sqrt builtin;
           Z = Sqrt(P);
         end B;

       end A;

In this example:

 1 
Sqrt is a programmer-defined name.
 2 
The assignment to the variable X is a reference to the programmer-defined name Sqrt.
 3 
Sqrt is declared with the BUILTIN attribute so that any reference to Sqrt within B is recognized as a reference to the built-in function and not to the programmer-defined name Sqrt declared in 1.

Terms of use | Feedback

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