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

4.20 PC_SET_DRIVE

This routine changes the current drive to another drive.

Specification

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

Interface

drive

Specifies a uppercase or lowercase drive character.

Return code

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

status-code
  • 0: Successful

  • Other than 0: Failure