Using the Create Service Program (CRTSRVPGM) Command

You create a service program using the Create Service Program (CRTSRVPGM) command. Any ILE module object can be bound into a service program. The module objects must exist before you can create a service program with it. You can create module objects from ILE COBOL source programs using the CRTCBLMOD command. Refer to Using the Create COBOL Module (CRTCBLMOD) Command for a description of how to create a module object using the CRTCBLMOD command.

Table 3 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 iSeries Information Center at this Web site -http://www.ibm.com/eserver/iseries/infocenter..

Table 3. Parameters for CRTSRVPGM Command and Their Default Values
Parameter Group Parameter(Default Value)
Identification
SRVPGM(*CURLIB/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)
REPLACE(*YES)
AUT(*LIBCRTAUT)
ALWUPD(*YES)
ALWRINZ(*NO)
TEXT(*BLANK)
ALWLIBUPD(*NO)
USRPRF(*USER)
TGTRLS(*CURRENT)