VMS Help — COBOL miscellaneous_topics, special_registers, 9 RMS-CURRENT-FILENAME
A Record Management Services (RMS) exception condition register
containing the name of the file causing the exception condition.
This register is implicitly associated with the file most recently
operated on by an I/O statement.