(init_sub) — initialize for subroutines

The invocation of this routine:
  • Creates and initializes a new common runtime environment (process and enclave) that allows the execution of subroutines multiple times
  • Sets the environment dormant so that exceptions are percolated out of it
  • Returns a token identifying the environment to the caller
  • Returns a code in register 15 indicating whether an environment was successfully initialized
  • Ensures that when the environment is dormant, it is immune to other Language Environment enclaves that are created or terminated
Read syntax diagramSkip visual syntax diagram
Syntax

>>-CALL--CEEPIPI--(--init_sub--,--ceexptbl_addr--,-------------->

>--service_rtns--,--runtime_opts--,--token--)------------------><

init_sub (input)
A fullword function code (integer value = 3) containing the init_sub request.
ceexptbl_addr (input)
A fullword containing the address of the PreInit table to be used during initialization of the new environment. Language Environment does not alter the user-supplied copy of the table. If an entry address is zero and the entry name is non-blank, Language Environment searches for the routine (in the LPA, saved segment, or nucleus) and dynamically loads it. Language Environment then places the entry address in the corresponding slot of a Language Environment-maintained table.

Language Environment uses the high-order bit of the entry address to determine what AMODE to use when calling the routine. If the entry address is zero, and the entry name is supplied, Language Environment uses the AMODE returned by the system loader. If the entry address is supplied, you must provide the AMODE in the high-order bit of the address.

service_rtns (input)
A fullword containing the address of the service routine vector. It contains 0 if there is no service routine vector. See Service routines for more information.
runtime_opts (input)
A fixed-length 255-character string containing runtime options (see z/OS Language Environment Programming Reference for a list of runtime options that you can specify).
Note:
  1. The runtime options you specify will apply to all of the subroutines that are called by the (call_sub) function. This includes options such as POSIX. Therefore, all of your subroutines must have the same characteristics and requirements needed for these runtime options.
  2. If the Language Environment being initialized is a non-XPLINK environment, then all of your subroutines must be non-XPLINK subroutines.
token (output)
A fullword containing a unique value used to represent the environment. The token should be used only as input to additional calls to CEEPIPI, and should not be altered or used in any other manner.