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

2.1 CBL_CLOSE_FILE

This routine closes a file.

Specification

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

Interface

file-handle

Specifies the file handle returned by CBL_OPEN_FILE, CBL_OPEN_FILE2, CBL-CREATE_FILE, or CBL_CREATE_FILE2.

Return code

The return code is set in the status-code specified in the RETURNING clause.

status-code
  • 0: Successful

  • -1: Parameter error

  • Other than above: Value indicating ANSI74 file status