call anyerr(errcod)
ANYERR is used to establish a variable that can be used by the error monitor to communicate the type of error back to the program. It must be called before an error occurs.
For example, if a call to OVERFL indicated that an overflow of some type had occured, the program could check "errcod" to see what type of overflow had occurred. Alternately, "errcod" might be checked inside an alternate error procedure established by FXALT and FXOPT.
Errors handled by the ERR= option of an I/O statement are not handled by the error monitor, so "errcod" will not be set.
Copyright © 1996, Thinkage Ltd.