TNSSYNLVL (Transaction Synchronization Level) Keyword for Intersystem Communications Function Files --Example

Figure 429 and Figure 430 shows how to specify the TNSSYNLVL keyword.

Figure 429. Specifying the TNSSYNLVL keyword

|...+....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

Figure 429 shows a write operation is issues for RCD2. The transaction between your program and the remote program will not be ended until the remote program confirms that the detach was received.

Figure 430. Specifying the TNSSYNLVL keyword

|...+....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

Figure 430 shows a write operation is issues 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.