$OSERR function
General Form:
$OSERR
The $OSERR function is used to return the native operating system error text of the most recent error. $OSERR is valid wherever an alpha function is valid.
Error text is only generated by commands that invoke operating system calls, i.e. LOAD, SAVE, OPEN #, $OPEN etc.
For example, if an attempt to OPEN # a native file that did not exist, the value of $OSERR would be set to something like `No such file or directory', $ERR would be set to `File not found', and ERR would be set to 82.
Unlike ERR $OSERR retains the error text until another error is encountered. However the ERR and $ERR functions also reset $OSERR so it should be inspected before ERR or $ERR. Errors which are not a result of a failed system call will leave $OSERR blank.
Syntax examples:
os_error$(count) = $OSERR
FLD(error_description$.err_text$) = $OSERR
See also: