RECLEN( ) function
Syntax
RECLEN( )
Parameters
This function does not have any parameters.
Output
Numeric.
Examples
Basic examples
The following example extracts all records where the length is exactly 110:
EXTRACT RECORD IF RECLEN( ) = 110 TO "Extract.fil"
Remarks
You can use the RECLEN( ) 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.