Illegal FIELD variable (ERR=122) A FIELDed variable is referenced after a non-BASIC subprogram closed the file associated with that variable. This error cannot be trapped with a BASIC error handler unless the program contains OPTION HANDLE = SEVERE. Check program logic; do not reference the variable after the file has been closed.