SOURCELINE Function

Purpose

Returns the line number of the statement invoking the function.

Syntax

SOURCELINE()

Description

SOURCELINE returns a FIXED BINARY(31,0) value that is the number of the line where the statement invoking the function is in the containing file. If the statement extends over several source lines, SOURCELINE returns the number of the line where the statement starts.

Note: SOURCELINE can be used in restricted expressions.

Examples

SOURCELINE()

Restrictions

None.