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

13.1 CBL_GET_KBD_STATUS

This routine checks whether a character was input from the keyboard.

Specification

Parameter data definition
01 key-status   PIC 9(9) BINARY.
01 status-code  PIC S9(4) COMP-5.
Calling format
CALL "CBL_GET_KBD_STATUS"
    USING key-status
    RETURNING status-code.

Interface

key-status

Specifies the area used to store key status information as follows:

  • 0: No character was input.

  • 1: A character was input.

Return code

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

status-code
  • 0: Successful

  • Other than 0: Failure