17.08.2013 Views

System i: Programming Message Handling APIs - IBM

System i: Programming Message Handling APIs - IBM

System i: Programming Message Handling APIs - IBM

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

*REMOVE Handles the escape, notify, or status exception and removes the message from the job log. If the<br />

exception is a notify message, its default reply or the reply specified in the reply text parameter is<br />

returned to the call stack entry that sent it. If the reply text length parameter value is 0, the default<br />

reply is sent. No error message is returned if the exception is already handled. The exception is<br />

immediately inaccessible for any further operations.<br />

Reply text<br />

INPUT; CHAR(*)<br />

If the exception is a notify message that has already been replied to, it is handled and removed<br />

from the job log. No error message is returned to the caller of this API.<br />

If the exception is not a notify message, the reply text length parameter value must be 0. If the<br />

reply text length parameter value is not 0, an error is returned to the caller of this API. The<br />

exception is not handled or removed from the job log.<br />

The data that is returned as the reply to a notify message when *REPLY or *REMOVE is specified<br />

for the modification option parameter. This data must be compatible with the reply type, reply<br />

length, and valid reply values stored in the message description for the message. If it is not<br />

compatible, an error is returned to the caller of this API.<br />

This parameter is ignored if:<br />

v The message being changed is not a notify message.<br />

v The modification option is not *REPLY or *REMOVE.<br />

v The reply text length parameter is 0.<br />

Reply text length<br />

INPUT; BINARY(4)<br />

The length, in bytes, of the data that is returned as the reply to a notify message. This length<br />

must be compatible with the reply type and maximum reply length stored in the message<br />

description for the message.<br />

Valid values follow:<br />

0 Return the notify message’s default reply.<br />

1-132 Return the reply specified in the reply text parameter. This is the number of bytes to return.<br />

If the message being changed is not a notify message, or the modification option is not *REPLY or<br />

*REMOVE, this parameter is ignored.<br />

Error code<br />

I/O; CHAR(*)<br />

The structure in which to return error information. For the format of the structure, see Error code<br />

parameter.<br />

Error <strong>Message</strong>s<br />

<strong>Message</strong> ID Error <strong>Message</strong> Text<br />

CPF24A3 E Value for call stack counter parameter not valid.<br />

CPF24B4 E Severe error while addressing parameter list.<br />

CPF24B6 E Length of &1, not valid for message text or data.<br />

CPF2401 E Not authorized to library &1.<br />

CPF2410 E <strong>Message</strong> key not found in message queue &1.<br />

CPF2411 E Not authorized to message file &1 in &2.<br />

CPF242D E Modification option &1 not valid.<br />

CPF242E E Tried to change message which is not an exception.<br />

CPF242F E <strong>Message</strong> type must be ESCAPE for *CHANGE modification option.<br />

<strong>Message</strong> <strong>Handling</strong> <strong>APIs</strong> 5

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!