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

4.15 CBL_READ_DIR

This routine returns the full path name of the current directory.

Specification

Parameter data definition
01  path-name         PIC X(n).
01  path-name-length  PIC 9(4) BINARY.
01  status-code       PIC S9(4) COMP-5.
Calling format
CALL "CBL_READ_DIR"
    USING path-name
          path-name-length
    RETURNING status-code.

Interface

path-name

Specifies the area to store the path name.

path-name-length

Specifies the size of the area to store the path name. The maximum value 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