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/.

Table 1. Parameters for CRTSRVPGM Command and their Default Values
Parameter Group Parameter(Default Value)
Identification

SRVPGM(library name/service program name)
MODULE(*SRVPGM)

Program access

EXPORT(*SRCFILE)
SRCFILE(*LIBL/QSRVSRC)
SRCMBR(*SRVPGM)

Binding

BNDSRVPGM(*NONE)
BNDDIR(*NONE)

Run time ACTGRP(*CALLER)
Miscellaneous

OPTION(*GEN *NODUPPROC *NODUPVAR *WARN *RSLVREF)
DETAIL(*NONE)
ALWUPD(*YES)
ALWRINZ(*NO)
REPLACE(*YES)
AUT(*LIBCRTAUT)
TEXT(*ENTMODTXT)
TGTRLS(*CURRENT)
USRPRF(*USER)

See Creating the Service Program for an example of using the CRTSRVPGM command.


Feedback