Answer
Here we are using an
IOSTAT
specifier in the
OPEN
statement. If the
OPEN
fails,
ERROR
is set to a non-zero value. We can then test the value of
ERROR
and act accordingly.
Return to lesson.
Hamlet Project
hamlet@cs.utah.edu