OPENPIPE

Description

Opens a data pipe either to send output to or receive input from the client application.

Syntax

Syntax varies with the programming language.

Examples

COBOL II

  1. Open a STD output pipe:

    MOVE 'OUTPUT' TO SPMODE.
     MOVE 'STD' TO SPFORMAT.
     MOVE 450 TO SPMAXLEN.
     CALL 'OPENPIPE' USING SPAREA.
    
  2. Open a BIN input pipe:

    MOVE 'INPUT' TO SPMODE.
     MOVE 'BIN' TO SPFORMAT.
     MOVE 625 TO SPMAXLEN.
     CALL 'OPENPIPE' USING SPAREA.
    

Usage

The OPENPIPE command uses values from these SPAREA fields: