Skip to main content

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

  • cmpcd is the completion code variable associated with the local socket.
  • bfr is 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. 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 has the attributes BINARY FIXED(31,0).
  • 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 used. 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 typing is in case one characters, and a carriage return precedes the positioning for across and down. 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 has the attributes BINARY FIXED(31,0).
  • 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 has the attributes BINARY FIXED(31,0).
  • down is the number of lines to be moved vertically down the display tube before beginning to type. down can have any value, positive, negative, or zero, and has the attributes BINARY FIXED(31,0).
  • time is 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.