Declares or deallocates subsystems.
Restriction: This routine is supported for native COBOL only.
Syntax:
call "CBL_SUBSYSTEM" using function-code
parameter
returning status-code
Parameters
-
function-code
- Call prototype: cblt-x1-compx
- Picture: pic x comp-x.
- Contains one of the following:
0: Declare subsystem
1: Cancel subsystem
2: Remove from subsystem
-
parameter
- Group predefined as
cblt-subsys-params containing:
01 cblt-subsys-params typedef.
03 cblte-ssp-handle cblt-x2-compx. *> pic x(2) comp-x.
03 cblte-ssp-name-len cblt-x2-compx. *> pic x(2) comp-x.
03 cblte-ssp-name cblt-x1. *> Occurs depending on
*> cblte-ssp-name-len. pic x(n).
-
status-code
- See
Library Routines - Key.
On Entry:
-
function-code
- The subfunction number.
- With
function-code = 0:
-
-
cblte-ssp-name-len
- The length of subsystem program-name field.
-
cblte-ssp-name
- The subsystem program-name (space-terminated).
- With
function-code = 1:
-
- cblte-ssp-handle
- The subsystem handle returned by a function 0 call.
- With
function-code = 2:
-
- dummy-param
- Value 0.
On Exit:
- With
function-code = 0:
-
-
cblte-ssp-handle
- The subsystem handle.
Comments:
A subsystem is defined to be a specified COBOL program in an application, plus any subprograms subsequently called by programs already in the subsystem that do not already belong to any other subsystems.