Sending a message

To send a message to another terminal or terminals, enter the transaction identifier, CMSG, followed by the applicable options.

About this task

The syntax diagram in CMSG command shows the options for CMSG. CMSG command options provides full details of the options

After entering CMSG, you must include at least the message text, a destination (ROUTE, or OPCLASS, or both), and the option SEND (which you can abbreviate to S). For example, the following command sends the message ‘GOOD MORNING' to all terminals:
   CMSG 'GOOD MORNING',R=ALL,S
If all is well, your message is sent, and the following response is returned to your terminal:
   MESSAGE HAS BEEN ROUTED

This response is received for the normal completion of a message-switching transaction. It means that the message has been successfully routed to its destination but does not reflect any delivery status.

You can use backspace characters in your input.

New-line characters (or carriage returns on a hard-copy terminal) that are not part of the message are changed to commas, unless they appear at the beginning or end of the input, in which case they are deleted. In this way, you can use NL characters as option separators, instead of commas. For example, on a display device, you could enter:
CMSG R=(T001,T002)#
T=1500#
'THE TIME IS 1500 HOURS'#
S@

You can enter the options, except SEND and CANCEL (one of which must be entered last), in any order after CMSG and one or more spaces. You can abbreviate every option, except CANCEL, to a single character, and you can include one or more options in a single input. If you specify two or more options, you must follow each by a comma, except the last, which must be followed by a space or by an end-of-data (EOD) condition indicating the end of your input. Any data following a space in the same input is ignored.

To mark the end of a single input:
  • Press the ENTER key on display devices such as the IBM® 3270
  • Press carriage return for hardcopy terminals such as the IBM 2741.

To maintain the conversation with a terminal, the status of all inputs, except the final input which includes the SEND option, is saved in a single temporary-storage record.

A message-switching transaction remains conversational until ended. This means that all input (even other transaction identifiers) is passed to the message-switching program. You must end a message-switching transaction (possibly involving multiple inputs) before you can start a different transaction.



dfha7oy.html | Timestamp icon Last updated: Monday, 5 June 2017