The FLDCOUNT function counts the number of fields in a record.
Category
Record
Syntax
*FLDCOUNT(REC_ALIAS*)*
*FLDCOUNT('<recname>' | variable *)*
Parameter and Description
Parameter | Description |
---|---|
<recname> |
Resolves at runtime to a string and represent the record name used to locate the record alias in the description of the input datastore. |
Example
Returns the number of fields for a record alias.
V_REC_FLDCOUNT = FLDCOUNT(RECNAME(INPUT DATASTORE))