FOUND, ERR, and ERRSUBCD

“FOUND” and “ERR” are protected fields that report the results of the last command executed. “FOUND” will be Y if a specified row was found, otherwise N. “ERR” and “ERRSUBCD” are set to zero if the command executed successfully, otherwise they are set to some non-zero error code. To interpret these codes, look for the related error message on the sixth screen-line, known as the message line (see tableBASE return codes).