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

4.2 CBL_CHANGE_DIR2

CBL_CHANGE_DIR2 changes the current directory to another directory.

The difference between the CBL_CHANGE_DIR subroutine and this subroutine is that this subroutine can support a directory name containing a space.

Specification

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

Interface

path-name

Specifies a full or partial path name, ending with a null character. The maximum size of the path 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