UCM Unitec Home Page
      

Terminate UCM Communication

 UciTerm(L)

Name   Environment   Synopsis   Description   Diagnostics   See also   Examples

Name

UciTerm

Environment

Unix, Win32 Cobol

Synopsis

CALL "UciTerm".

Description

The UciTerm function terminates UCM processing.

UciTerm will fail if one or more of the following is true:

UE_NOTINIT The UCI interface has not been initialize by a call to UciInit (UCI-ERRNO 1).

Diagnostics

Upon successful completion UciTerm returns ZERO. Otherwise, the value of the  global ucmErrno is returned and the field UCI-ERRNO in the UCI-PAR structure is set to indicate the error. In most Cobol implementations the return code of C functions may be accessed through a predefined variable named RETURN-CODE.

See also

UciClose, UciInit

Examples

 
COPY "UCI.CPY".

CALL "UciInit".
ACCEPT UCI-SOCKET FROM COMMAND-LINE.
CALL "UciOpen" USING UCI-PAR.
...
CALL "UciClose" USING UCI-PAR.
CALL "UciTerm".

 

Back to top