Send Alert (QALSNDA) API


  Required Parameter Group:


  Default Public Authority: *USE

  Threadsafe: No

The Send Alert (QALSNDA) API, an alert API, sends an alert to the IBM® i alert manager for processing. The alert is created by calling the Generate Alert (QALGENA) API. An alert may be received by your application from another system or it can be built by other means.

When the IBM i alert manager receives the alert, it handles it like any other alert on the system. The alert function is notified of the alert, and the alert can be logged and forwarded to a focal point or central site. The alert can be treated as either a locally generated alert or a received alert. The IBM i alert manager updates the hierarchical information of received alerts with the name of the control point that is handling the alert (that is, the LCLCPNAME network attribute value).


Authorities and Locks

None.


Required Parameter Group

Alert major vector
INPUT; CHAR(*)

The variable that contains the alert major vector.

Length of alert major vector
INPUT; BINARY(4)

The length of the alert, in bytes.

Valid values are 1 through 512.

Local or received indicator
INPUT; CHAR(1)

One of these values, indicating whether the alert is handled as locally generated or received:


Origin
INPUT; CHAR(10)

The origin of the alert. This value is not included in the alert. It is used only in the substitution text for messages CPI7B62 (Alert received from &1) and CPI7B60 (Incorrect alert received from &1), which are sent to the QSYSOPR message queue. Thus, you could use it for the name of the program generating a locally generated alert, or the name of the system sending a received alert.

Error code
I/O; CHAR(*)

The structure in which to return error information. For the format of the structure, see Error code parameter.


Error Messages



API introduced: V2R1

[ Back to top | Network Management APIs | APIs by category ]