ADDRDATA

ADDRDATA returns the pointer value that identifies the generation of x.

Read syntax diagramSkip visual syntax diagramADDRDATA( x)
x
Reference.
ADDRDATA behaves the same as the ADDR built-in function except in the following instance:
  • When applied to a varying string, ADDRDATA returns the address of the first data byte of the string (rather than of the length field).
  • When applied to an OFFSET reference with the LOCATES attribute and implicit AREA qualification:
    • If the OFFSET reference is not null, ADDRDATA returns the address of the located data.
    • If the OFFSET reference is null, ADDRDATA returns SYSNULL.