Haas Alarm: 997 TOO MANY FILES HAVE BEEN OPENED ON THE CURRENT DEVICE – Device from which a program is running has reached maximum number of files which can be opened on it. Reduce the number of subroutines used.