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

4.19 PC_READ_DRIVE

This routine returns the name of the current drive.

Specification

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

Interface

drive

Specifies the area to store the drive name. The drive name is returned with capital letters.

Return code

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

status-code
  • 0: Successful

  • Other than 0: Failure