Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

Format

Example

statement

RDB/VMS Relational Database Operator AT_END — VMS RDB_4.0

 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:

FormatExample

Format

 AT END ──> statement

Additional information available:

statement

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

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026