This routine moves the cursor to the specified position. The cursor position is specified by line and column numbers. The top-left corner of the screen is assumed to be the origin (where line and column numbers are 0).
Specification
01 text-cursor-position. 02 line-position PIC 9(4) BINARY. 02 column-position PIC 9(4) BINARY. 01 status-code PIC S9(4) COMP-5.
CALL "CBL_SET_CSR_POS" USING text-cursor-position RETURNING status-code.
Interface
Specifies a new line position of the text cursor to be moved.
Specifies a new column position of the text cursor to be moved.
Return code
The return code is set in the status-code specified in the RETURNING clause.
0: Successful
Other than 0: Failure
Note
Note the following point when using CBL_SET_CSR_POS:
To delete the text cursor from the screen, specify 255 in the line and column parameters.