Use this record-level keyword to specify that, when your program sends an input operation to this record format, the i5/OS™ operating system is to return the same data that was returned on the previous input operation sent to this record format.
The RTNDTA keyword is ignored if the record format has not already been read. When the RTNDTA keyword is in effect, your program can reread data on the display without requiring the i5/OS operating system to actually pass data from the display device to your program.
This keyword has no parameters.
The RTNDTA keyword has effect only on an input operation sent to the same record format without an intervening output operation to that record format.
If the UNLOCK keyword is specified, the RTNDTA keyword cannot be specified.
Option indicators are not valid for this keyword.
The following example shows how to specify the RTNDTA keyword.
|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8 00010A R RECORD1 RTNDTA 00020A FLD1 5 I 2 2 00030A FLD2 5 B 3 2 A