Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

Format

Examples

RDB/VMS Relational Database Operator END_STREAM — VMS CDD+_4.1A

 Ends a stream.

 If you close a record stream, you can use the START_STREAM statement
 to establish a new record stream with the same name.

 Example:

      RDO> END_STREAM EMPLOYEES_STREAM

Additional information available:

FormatExamples

Format

 ENDSTREAM ─────> stream-name ──────┬────────────────┬──────>
                                     └──> on-error ───┘

 stream-name             Names the stream that you want to close.  If
                         you are using declared streams, this name
                         must be the same name used in the associated
                         DECLARE_STREAM statement.  If you are using
                         undeclared streams, this name must be the
                         same name used in the associated START_STREAM
                         statement.
 on-error                Specifies a host language or Rdb/VMS
                         statement to be performed if an error occurs.

Examples

 Example 1

 Close an open stream, named STREAM_X, in RDO:

 RDO>  END_STREAM STREAM_X


 Example 2

 Close an open stream, named OLD_STREAM, in a COBOL program:

 &RDB& END_STREAM OLD_STREAM

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