ContentsIndexPreviousNext

CBL_DELETE_FILE Routine

CBL_DELETE_FILE deletes the indicated file.

Usage

CALL "CBL_DELETE_FILE"
   USING FILE-NAME,
   GIVING STATUS

Parameters

FILE-NAME PIC X(n)

Contains the name of the file to be deleted. This should either be a full path name or a name relative to the current directory.

STATUS Any numeric data type

Returns "0" if successful, or "1" if not.


Note: The behavior of this library routine is affected by the setting of the FILENAME_SPACES configuration variable that may or may not allow spaces in a file name. See the documentation on FILENAME_SPACES in Appendix H, "Configuration File Entries", for information about the terminating character for path names.