LINENO

LINENO returns an unscaled REAL FIXED BINARY specifying the current line number of x.

Read syntax diagramSkip visual syntax diagramLINENO( x)
x
File-reference.

The file must be open and have the PRINT attribute. If the file is not open or does not have the PRINT attribute, 0 is returned.

The BIFPREC compiler option determines the precision of the result returned.