Top
NetCOBOL V11.0 CBL Subroutines User's Guide
FUJITSU Software

4.11 CBL_DELETE_FILE

This routine deletes a file.

Specification

Parameter data definition
01  file-name    PIC X(n).
01  status-code  PIC S9(4) COMP-5.
Calling format
CALL "CBL_DELETE_FILE"
    USING file-name
    RETURNING status-code.

Interface

file-name

Specifies a file name, ending with a blank or 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.

status-code
  • 0: Successful

  • Other than 0: Failure