CLOSPIPE

Description

Closes a data pipe.

Syntax

Syntax varies with the programming language.

Examples

COBAL II

  1. Closing an input pipe:

    MOVE 'INPUT' TO SPMODE.
     CALL 'CLOSPIPE' USING SPAREA.
    
  2. Closing an output pipe:

    MOVE 'OUTPUT' TO SPMODE.
     CALL 'CLOSPIPE' USING SPAREA.
    

Usage


Properties

The CLOSPIPE command uses the value from the SPAREA field SPMODE (see “SPMODE”), which specifies whether the data pipe is opened for input or output.