Follow these steps when designing an initialization/termination
program:
- Decide what servers the initialization/termination program will
define. The main considerations are server resources and recovery.
- Resources -- The initialization/termination program can obtain
and release resources such as storage and data sets for its servers.
If servers share resources, you can increase their efficiency by having
a single initialization/termination program define the servers and
obtain and release the resources for them.
- Recovery -- If a server fails and cannot recover, MVSSERV calls
the server's initialization/termination program to terminate all the
servers it defined. Therefore, you might want to define related servers
in the same initialization/termination program, and define unrelated
servers in different initialization/termination programs.
- Decide how to package the initialization/termination program in
relation to the servers.
You can package servers and their initialization/termination
program as CSECTs of the same load module or as different load modules.
The main consideration is server loading:
- If you do not want the initialization/termination program to load
the server, place the initialization/termination program and server
in the same load module. The initialization/termination program
can use a constant server address to define the server to MVSSERV.
- If you want the initialization/termination program to load the
server, place the initialization/termination program and server in different load
modules. The initialization/termination program can get the server
address from the LOAD macro to define the server to MVSSERV.
- Decide whether the initialization/termination program server should
use 24- or 31-bit addressing. Initialization/termination programs
can execute in AMODE 24 or 31, and RMODE 24 or ANY.
- Select a name for the initialization/termination program. Names can have up
to eight characters, including the characters A-Z, 0-9, @, #, and
$. The first character cannot be 0-9.
- Put the name of the initialization/termination program in the
input parameter data set (see Installing Programs and Data Sets for Use with MVSSERV).