The RID function returns the relative record number of a row as a BIGINT.
Example:
Return the relative record number and employee name from table EMPLOYEE for those employees in department 20.
SELECT RID(EMPLOYEE), FROM EMPLOYEE WHERE DEPTNO = 20