SendMessage

Syntax

SENDMESSAGE { ALL | ODT | variable } expression

Parameters

SendMessage can be abbreviated as SendStatus, SMSG, SM, or SS.

Note: For Windows-based systems, the SendMessage ODT command accepts a message of more than 50 characters and logs it to Windows Event Log as expected.

Description

Specific details for each runtime host type are given in the following subsections.

For a System based on the Windows Operating System

The SendMessage command sends messages directly to the status line of specified user terminals signed on to the runtime application. In reports, the message is sent to the report message window. The message is sent immediately, and does not wait for the end of the current transaction.

If an invalid username is specified, or the designated user is not logged on, no message is delivered, and no error is returned.

If the SendMessage ODT logic cammand variant is specified, use the Windows Event Viewer to view the messages, which are listed in the Source column as "LINC ODT".

In Debugger

Debugger interprets the SendMessage command with and without the ODT variant differently and responds accordingly. Following are the different types of Debugger behavior for the SendMessage command:

For MCP-based systems

Reports initiated in batch mode under LINC/RIP have the value of their initiating station (Glb.InitStn) set to BATCH, so that attempts to send messages to Glb.InitStn will have no effect. No messages are delivered, and no errors are returned.

When processing an OLTP-originated transaction, the following restrictions apply to the SendMessage command:

When a message is sent to a station using the command SendMessage Glb.Station <message>, the message is displayed for 0.4 seconds on the status line before the screen is displayed. When the screen is displayed, the message disappears.

Restrictions

The following restrictions apply to the SendMessage logic command:

Examples

Example 1

SendMessage All "All users please sign off"

Example 2

This example is of an ispec initiated SendMessage logic command.

SendMessage Glb.Stn "Processing your request"

Example 3

This example is of a report Initiated SendMessage logic command.

SendMessage Glb.InitStn "Processing your request"