Returns the relative record number of a row. The argument is a table name or correlation name.
Example:
SELECT RRN(CORPDATA.EMPLOYEE), LASTNAME FROM CORPDATA.EMPLOYEE WHERE DEPTNO = 20
Returns the relative record number and employee name from table EMPLOYEE for those employees in department 20.