Send a Message to All Terminals

From CometWiki

Jump to: navigation, search

DOS pseudo functions: Send a Message to All Terminals

Syntax:

 DOSRW(AX-value, number-of-bytes, format-statement-label) EXCP=statement-label  

Entry:

 AX-value = "@FFFE@"
                                                                                                                     .
 number-of-bytes = number of characters to be written to another terminal
 format-statement-label = format statement containing the message to be written to the other terminal (may be a constant or
 variable)
                                                                                                                     .

Return:
If the write function is successful, the message contained in the format statement will be sent to the terminal specified.

If an exception occurs, byte 2 of the AX field will contain the DOS error code (in hex).


Discussion:
This pseudo function sends a message to the write control line of all Comet workstations, including all workstations attached to a Comet Terminal Adapter and all workstations running Comet on a network.


Also see Send a Message to Another Terminal

Personal tools