DDS for display files


RTNDTA (Return Data) keyword for display files

Use this record-level keyword to specify that, when your program sends an input operation to this record format, the OS/400 program 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 OS/400 program to actually pass data from the display device to your program.

This keyword has no parameters.

The RTNDTA keyword is ignored in the following situations:

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.

You can use RTNDTA as follows:

If the UNLOCK keyword is specified, the RTNDTA keyword cannot be specified.

Option indicators are not valid for this keyword.

Example:

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


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]