CBL_WRITE_SCR_TTY

The CBL_WRITE_SCR_TTY routine is one of a set of library routines that facilitate reading and writing attributes on the screen. This routine writes a string of characters to the screen starting at the current position and scrolls the screen if the write operation extends beyond the end of the screen.

Usage

CALL "CBL_WRITE_SCR_TTY" 
    USING CHARACTER-BUFFER, STRING-LENGTH 
    RETURNING STATUS-CODE

Parameters

CHARACTER-BUFFER PIC X(N). On entry, contains the characters to write
STRING-LENGTH PIC XX COMP-X.    On entry, this item contains the length of the string to write. If the string length extends off the screen, the screen is scrolled up a line and the write continues on the bottom line.
STATUS-CODE Any numeric type Returns 1 if successful, or 0 if not successful

Description

This library routine writes the character string in the CHARACTER-BUFFER parameter on the screen. STRING-LENGTH contains the length of that character string. If necessary, the routine allows the write operation to continue past the end of the screen with a scrolling action.

Note: This routine is not supported with Thin Client.