Follow these steps when designing a server:
- Decide what service request (or requests) your server will handle.
If your server handles more than one service request, your server
needs a service function for each request. The service functions can
be:
- Server subroutines
- Server CSECTs
- Load modules that are separate from the server
If a service function fails, all other service functions of
the same server are disabled. For recovery purposes, you might want
to handle unrelated requests in separate servers rather than in functions
of the same server. You could then isolate the servers by defining
them in different initialization/termination programs (for details,
see Steps for Designing an Initialization/Termination Program).
- Decide whether the server should use 24- or 31-bit addressing.
Servers can execute in AMODE 24 or 31, and in RMODE 24 or ANY.
- Select a name for the server. Names can have up to eight characters,
including the characters A-Z, 0-9, @, #, and $. The first character
cannot be 0-9.