%OID (SQL)
A scalar function that returns OID of an ID field.
Synopsis
%OID(id_field)
Description
%OID takes a field name and returns the fully formed OID (object ID) for the object. The field must be either an ID field or a reference field (a foreign key field). Specifying any other type of field in id_field generates an SQLCODE -1 error.