%OCCUR Function

%OCCUR built-in function sets or gets the current position of a Multiple Occurrence Data Structure .

%OCCUR (DSN_name) 
        

Parameters

DSN_name

Required. Contains the name of the Data Structure.

Remarks

When this function is evaluated for its value, it returns the current occurrence number of the specified Data Structure. This in an unsigned numeric value. When this function is specified on the left-hand side of an EVAL statement, the specified number becomes the current occurrance. This must be a non-float numeric value with zero decimal positions. See OCCUR operation code for more information about multi-occurrence data structures.

See Also

Built-in Function Overview

Multiple Occurrence Data Structures

OCCUR