ILE COBOL Programmer's Guide


Replying to Run Time Inquiry Messages

When you run an ILE COBOL program, run-time inquiry messages may be generated. The messages require a response before the program continues running.

You can add the inquiry messages to a system reply list to provide automatic replies to the messages. The replies for these messages may be specified individually or generally. This method of replying to inquiry messages is especially suitable for batch programs, which would otherwise require an operator to issue replies.

You can add the following ILE COBOL inquiry messages to the system reply list:

The reply list is only used when an inquiry message is sent by a job that has the Inquiry Message Reply (INQMSGRPY) attribute specified as INQMSGRPY(*SYSRPYL).

The INQMSGRPY parameter occurs on the following CL commands:

You can select one of four reply modes by specifying one of the following values for the INQMSGRPY parameter:

SAME
No change is made in the way that replies are sent to inquiry messages

RQD
All inquiry messages require a reply by the receiver of the inquiry messages

DFT
A default reply is issued

SYSRPYL
The system reply list is checked for a matching reply list entry. If a match occurs, the reply value in that entry is used. If no entry exists for that inquiry message, a reply is required.

You can use the Add Reply List Entry (ADDRPYLE) command to add entries to the system reply list, or the Work with Reply List Entry (WRKRPYLE) command to change or remove entries in the system reply list. You can also reply to run time inquiry messages with a user-defined error-handler.

For details of the ADDRPYLE and WRKRPYLE commands, and for more information about error-handling APIs, refer to the CL and APIs section of the Programming category in the iSeries 400 Information Center at this Web site -http://publib.boulder.ibm.com/pubs/html/as400/infocenter.htm.


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]