# System Variables

ERR | Last System-Detected Error Value

Numeric System Variable

## Contents

Integer, last system-detected error code

## Description

The ERR variable contains a numeric value (integer) that indicates the last system-detected error. It is reset by the BEGIN, CLEAR, END, RESET, STOP and START directives.

## See Also

ERR( ) Test Error Value
Error Codes and Messages
BEGIN Reset Files and Variables
CLEAR Reset Variables
END Halt Execution of Program
RESET Reset Program State
STOP Halt Program Execution
START Restart Session

## Example

In this example, the "TEST" file is already open:

> open (5)"TEST"
> Error #14: Invalid I/O request for file state
> ?err
> 14