Returns the name of the last file used in an I/O statement.
Use it in conjunction with C$RERR to diagnose file errors.
CALL "C$RERRNAME" USING file-name
- PIC X(n)
- The name of the last file that was involved in an I/O statement.
Note: The filename is the one specified in the ASSIGN clause.