CBL_DELETE_FILE2 deletes a file. The difference between the CBL_DELETE_FILE subroutine and this subroutine is that this subroutine can support a file name containing a space.
Specification
01 file-name PIC X(n). 01 status-code PIC S9(4) COMP-5.
CALL "CBL_DELETE_FILE2" USING file-name RETURNING status-code.
Interface
Specifies a file name, ending with a null character. If no path name is specified, the current directory is assumed. The maximum size of the file name is 255.
Return code
The return code is set in the status-code specified in the RETURNING clause.
0: Successful
Other than 0: Failure