COUNT attribute can be used to specify the quantity of the program records within the program array that contain data. This attribute can be used only in the ATTRIBUTE clause of the INPUT ARRAY statement.
ATTRIBUTE (COUNT = 10)
The effect of the COUNT attribute is equivalent to the effect of the built-in function set_count(). The COUNT attribute overrides the value of the set_count() function called previously.
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.