C$RERRNAME

This routine returns the name of the last file used in an I/O statement. It can be used in conjunction with C$RERR to determine file errors.

Usage

CALL "C$RERRNAME" 
    USING FILE-NAME

Parameter

FILE-NAME PIC X(n) This field is filled in with the name of the last file that was involved in an I/O statement. If the last statement was a transaction statement, then this routine returns spaces. The file name returned is the one found in the file's ASSIGN clause when it was opened. Any name translations specified in the configuration file are reflected in the returned name, but the FILE-PREFIX and FILE-SUFFIX used are not.