Creating a Service Program Using CRTSRVPGM
You create a service program using the Create Service Program (CRTSRVPGM) command. Any ILE module can be bound into a service program. The module(s) must exist before you can create a service program with it.
Table 1 lists the CRTSRVPGM parameters and their defaults. For a full description of the CRTSRVPGM command and its parameters, refer to the CL and APIs section of the Programming category in the IBM® i Information Center at this Web site - http://www.ibm.com/systems/i/infocenter/.
| Parameter Group | Parameter(Default Value) |
|---|---|
| Identification | SRVPGM(library name/service program name) |
| Program access | EXPORT(*SRCFILE) |
| Binding | BNDSRVPGM(*NONE) |
| Run time | ACTGRP(*CALLER) |
| Miscellaneous | OPTION(*GEN *NODUPPROC *NODUPVAR *WARN *RSLVREF) |
See Creating the Service Program for an example of using the CRTSRVPGM command.