This routine is used to define a COBOL subsystem, which allows cancelling of all COBOL programs in the subsystem with a single statement.
This library routine takes two parameters. The first parameter is an opcode, and the second parameter depends on the opcode used:
CALL "CBL_SUBSYSTEM" using op-code, parameter GIVING status-code
op-code (pic x comp-x) | This contains one of the following values:
|
When op-code = 0, "parameter" is a group item that looks like:
ss-handle pic x(2) comp-x. ss-name-len pic x(2) comp-x. ss-name pic x(n).
When op-code = 1, "parameter" is:
ss-handle pic x(2) comp-x.
When op-code = 2, "parameter" is ignored.
On entry:
op-code has the value of the operation to perform, 0, 1, or 2.
When op-code = 0, ss-name-len holds the length of the subsystem program-name field. ss-name holds the subsystem program-name. This must be a COBOL program.
When op-code = 0, ss-handle holds the subsystem handle returned by a function 0 call.
On exit:
When op-code = 0, ss-handle holds the subsystem handle value.