POINTERDIFF Function

Purpose

Returns the difference (i.e., magnitude or absolute value) between two pointers, which is FIXED BINARY(31,0).

Syntax

POINTERDIFF(x,y)

Abbreviation(s): PTRDIFF for POINTERDIFF.

Parameters

x and y are expressions declared as POINTER.

Description

POINTERDIFF returns the difference (i.e., magnitude or absolute value) between two pointers, which is FIXED BINARY(31,0). It can be abbreviated as PTRDIFF.

Restrictions

None.