8.8.9.2 %LOC Function

The built-in function %LOC computes the internal address of a storage item. It takes the following form:

 %LOC (arg)
arg
Is the name of an actual argument. It must be a variable, an expression, or the name of a procedure. (It must not be the name of an internal procedure or statement function.)

The %LOC function produces an integer (INTEGER(8) on OpenVMS, Tru64 UNIX, and Linux systems; INTEGER(4) on Windows NT and Windows 9* systems) value that represents the location of the given argument. You can use this integer value as an item in an arithmetic expression.

The LOC intrinsic function serves the same purpose as the %LOC built-in function.

For More Information:


Previous Page Next Page Table of Contents