Retrieves the last filename used in a COBOL I/O statement (including OPEN and CLOSE).
Note: When calling this routine, ensure you are using the 1024 calling convention.
CALL "C$GetLastFileName" USING filename
- PIC X(30)
- The name of the filename used in the last I/O operation.
For REWRITE and WRITE statements, the COBOL filename associated with the specified file record-name is provided.
If the filename is longer than 30 characters, it is truncated to the right.