MAXCOUNT attribute

MAXCOUNT attribute is used to define the dynamic size of a screen array. The size specified in this attribute can differ from the actual size of the screen array; it can be smaller than the size of the screen array defined in the form specification file. This attribute can be used only in the ATTRIBUTE clause of the INPUT ARRAY statement.

 

Both COUNT and MAXCOUNT attributes can be specified within one INPUT ARRAY statement.

INPUT ARRAY l_account_arr FROM sa_account.*

      ATTRIBUTE (COUNT=a, MAXCOUNT=b)

 

The "a" and "b" can be either literal integers or variables of INTEGER data type, "a" determines the maximal number of program records stored in the program array l_account_arr and "b" specifies the maximum size of the screen array sa_account.

 

If the MAXCOUNT value is greater than the actual size of the screen array, or if it is less than 1, the MAXCOUNT will be automatically specified the same size as the actual size of the screen array.

 

The COUNT and MAXCOUNT attributes support integer expressions or variables that return integers unlike the other attributes that support only corresponding keywords or literal integers.

 

Contact Us

Privacy Policy

Copyright © 2025 Querix, (UK) Ltd.