8. Write to Online Console
This subprogram causes data, assumed to be characters represented by their EBCDIC codes, to be sent from the specified local socket. The characters are sent in a standard message, preceded by a header, and optionally followed by a trailer. The subprogram waits for the data to be received by the foreign socket, or to be queued locally by the NCP. This operation is valid only when the local socket is a send socket, and is fully open.
The calling sequence is as follows:
CALL WTOLC (cmpcd, bfr, len, level, across, down, time)
Where
'cmpcd' is the completion code variable associated with the local socket.
'bfr' is the character string to be sent, and can be of any type, any length.
'len' in absolute value, is the number of characters to be sent. If 'len' is positive or zero, the end of the data is indicated by a trailer; if 'len' is negative, no trailer is sent. 'len' is of type INTEGER*4.
'level' indicates the mode of typing. The absolute value of 'level', if non-zero, is the shift level on which to type, and must be less than or equal to nine. If greater than nine, one is sued. If 'level' is positive, 'across' and 'down' are relative to the current typing location. If 'level' is negative, the carriage is positioned to the upper left-hand corner before typing begins, thus making 'across' and 'down' absolute coordinates. If 'level' is zero, the tying is in case one characters, and a carriage return precedes the positioning for 'across' and 'sown.' If the characters to be displayed are case one characters, the header sent will have an op code which indicates characters to be displayed as soon as they are received; otherwise, the op code will indicate buttons to be executed as soon as received. 'level' is of type INTEGER*4.
'across' is the number of spaces to be moved horizontally across the display tube before beginning to type. 'across' can have any value, positive, negative, or zero, and is type INTEGER*4.
'time' is the length of time the subprogram is to wait for completion of the operation.
The completion codes for this operation are the same as for SEND.