10. WRITE TO ON-LINE 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
cmpcdis the completion code variable associated with the local socket.bfris the character string to be sent, and must have the attribute STRING, either CHARACTER or BIT, of any length, fixed or varying.len, in absolute value, is the number of characters to be sent. Iflenis positive or zero, the end of the data is indicated by a trailer; iflenis negative, no trailer is sent.lenhas the attributes BINARY FIXED(31,0).levelindicates the mode of typing. The absolute value oflevel, 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 used. Iflevelis positive,acrossanddownare relative to the current typing location. Iflevelis negative, the carriage is positioned to the upper left-hand corner before typing begins, thus makingacrossanddownabsolute coordinates. Iflevelis zero, the typing is in case one characters, and a carriage return precedes the positioning foracrossanddown. 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.levelhas the attributes BINARY FIXED(31,0).acrossis the number of spaces to be moved horizontally across the display tube before beginning to type.acrosscan have any value, positive, negative, or zero, and has the attributes BINARY FIXED(31,0).downis the number of lines to be moved vertically down the display tube before beginning to type.downcan have any value, positive, negative, or zero, and has the attributes BINARY FIXED(31,0).timeis the length of time the subprogram is to wait for the completion of the operation.
The completion codes for this operation are the same as for SEND.