RCVCANCEL (Receive Cancel) keyword for ICF files

Use this file- or record-level keyword to set on a response indicator to inform your program that the remote program has sent a cancel request.

The format of the keyword is:
RCVCANCEL(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.

You cannot specify RCVCANCEL with the TIMER keyword.

Option indicators are not valid for this keyword.

Example

The following example shows how to specify the RCVCANCEL keyword.

|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
     A          R RCD1                      RCVCANCEL(34 'Received - +
     A                                      Cancel')
     A

Indicator 34 is set on when a cancel request is received on an input operation from RCD1.