RCVFAIL (Receive Fail) keyword for ICF files

Use this file- or record-level keyword to set on a response indicator when the local program determines that the remote program has sent a fail indication.

If this condition occurs when the RCVFAIL keyword was not specified, an i5/OS™ message notifies the local program that the remote program has sent a fail indication.

The format of the keyword is:
RCVFAIL(response-indicator ['text'])

The response-indicator parameter is required.

The optional text is included on the computer printout created at program compilation time to explain the intended use of the indicator. The text has no function in the file or the program other than as a comment. The single quotation marks are required. If you specify more than 50 characters between the single quotation marks, the text is truncated to 50 characters on the program computer printout.

Option indicators are not valid for this keyword.

Example

The following example shows how to specify the RCVFAIL keyword.

|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
00010A                                      RCVFAIL(10 'Fail received')
00020A
00030A          R RCD
     A

Indicator 10 is set on when the remote program sends a fail indication.