RECLEN( ) function

Returns the length of the current record.

Syntax

RECLEN( )

Parameters

This function does not have any parameters.

Output

Numeric.

Remarks

You can use this function to identify to records of a particular length, or to test for shorter than expected records. This function is useful if you are working with Print Image (Report) files, because it provides an easy way to examine the record lengths.

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

Example

For example, if you want to extract all records where the length is exactly 110, specify:

EXTRACT RECORD IF RECLEN( ) = 110 TO "Extract.fil"

Related reference
RECNO( ) function


(C) 2013 ACL Services Ltd. All Rights Reserved. | Send feedback