CDISP0035E

A type mismatch was found in the history subscript. An integral type is expected, but the following type is found instead: input stream name [ subscript type ].

The expression that is used to subscript a stream history reference must be an integral type expression.
Ensure that the type of the expression is the integral type.