Use this file- or record-level keyword to specify the transaction synchronization level (specified on the SYNLVL keyword) that is performed while issuing a write operation when a DETACH or ALWWRT keyword is specified.
This keyword has no parameters.
The DETACH or ALWWRT keyword must be specified at either the file level or on the same record as the TNSSYNLVL keyword.
The TIMER keyword is not allowed with the TNSSYNLVL keyword.
Option indicators are not valid for this keyword.
The following example shows that a write operation is issued for RCD2. The transaction between your program and the remote program will not be ended until the remote program confirms that the detach request was received.
|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8 A R RCD1 A EVOKE(LIBRARY1/PROGRAM1) A SYNLVL(*CONFIRM) A R RCD2 A DETACH A TNSSYNLVL A
The following example shows that a write operation is issued for RCD2. The conversation between your program and the remote program is put into a defer receive state. The conversation will be in receive state when a CONFIRM or COMMIT operation is completed.
|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8 A R RCD1 A EVOKE(LIBRARY1/PROGRAM1) A SYNLVL(*CONFIRM) A R RCD2 A ALWWRT A TNSSYNLVL A