Use this file- or record-level keyword to request that the remote program confirm that it received the data.
This keyword has no parameters.
The CONFIRM keyword is valid only if the transaction was established with a synchronization level of confirm (SYNLVL(*CONFIRM) keyword). If the transaction was established with a synchronization level of none (SYNLVL(*NONE) keyword), the CONFIRM keyword is rejected with an i5/OS™ error message.
The CONFIRM keyword is ignored at run time when EOS, RSPCONFIRM, or RQSWRT is in effect. These keywords must have option indicators when they apply to a record for which the CONFIRM keyword applies. If an EOS, RSPCONFIRM, or RQSWRT keyword with no option indicator applies to a record for which CONFIRM applies, an error message is issued and the CONFIRM keyword is ignored at creation time.
You cannot specify CONFIRM with the TIMER keyword.
The CONFIRM keyword can be specified once at the file level or once for every record format.
Option indicators are valid with this keyword.
The following example shows how to specify the CONFIRM keyword.
|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8 00010A R RCD 00020A 01 CONFIRM A
If option indicator 01 is on, the remote program will confirm receiving the data by sending either a positive or negative response.