You are here: Functions > RECLEN()

RECLEN()

RECLEN() returns the length of the current record.

Use RECLEN() to test for short records or for records of a particular length. It is especially useful with CR/LF (report) files, because it provides an easy way to examine the record lengths.

Function Format

RECLEN()

RECLEN() returns the length of the current record.

For more information on how to determine the current record, see RECNO().

For fixed-length records, the result is a constant (the record length). For variable-length records, the result changes for each record.

Examples

To extract all records in which the length is exactly 110 (presuming that this is the record type of interest to you), specify the condition:

RECLEN() = 110