SOURCELINE

SOURCELINE returns a FIXED BINARY(31,0) value that is the line number of the statement where this function is invoked, within the file that contains that statement. If the statement extends over several source lines, the number returned is that of the line on which the statement starts.

Read syntax diagramSkip visual syntax diagramSOURCELINE()

The SOURCELINE built-in function can be used in restricted expressions.