RDB/VMS Relational Database Operator AT_END — VMS RDB_4.1_M
Specifies the statement a program performs if a FETCH statement
reaches the end of a record stream. You can use the AT END clause
only with the FETCH statement in a program.
Example:
&RDB& FETCH STREAM_X
&RDB& AT END
GO TO END_OF_STREAM.
&RDB& END_FETCH
Additional information available:
Format
AT END ──> statement
Additional information available:
statement
Any valid host language or Rdb/VMS statement.
Example
The following lines from a COBOL program branch to a COBOL label
elsewhere in the program to continue processing when Rdb/VMS reaches
the end of the record stream STREAM_X:
&RDB& FETCH STREAM_X
&RDB& AT END
GO TO END_OF_STREAM.
&RDB& END_FETCH