The variable was used as a data item, but it is not a data item.
Change the program so that it does not use the variable as if it were a data item.