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

LOCATION

Example

LOCATION returns a FIXED BINARY value specifying the byte location of x within the level-1 structure or union that has member x.

Read syntax diagramSkip visual syntax diagram>>-LOCATION(x)-------------------------------------------------><
 

Abbreviation: LOC

x
Structure or union member name. If x is not a member of a structure or union, a value of 0 is returned. If x has the BIT attribute, the value returned by LOCATION is the location of the byte that contains x.

The value for x must not be subscripted.

LOCATION can be used in restricted expressions, with a limitation. The value for x must be declared before y if LOC(x) is used to set either of the following:

Under the CMPAT(V3) compiler option, LOCATION returns a FIXED BIN(63) value. Under all other CMPAT options, it returns a FIXED BIN(31) value.


Terms of use | Feedback

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