NUMFIELD()

 

Syntax:

       Then: xx = NUMFIELD(lookupname)
       Then: xx = NUMFIELD(-)

 

lookupname is the name of a lookup.
- represents the current file (file in which the processing resides).
The return value is the number of fields in the designated file. This value is assigned to the variable XX.

 

Version Ref:  4.5

 

Description:

NUMFIELD obtains the number of fields in a lookup file.

 

Examples:

 

       Then: lookup cust k=1 i=a -ex
       Then: aa = numfield(cust)