Command reference / prog
UPDSRVPGM
Update Service Program
Replaces modules of an ILE bound service program with existing module objects on the system, without changing or recompiling the service program. Other jobs can use the service program during the update: the current version moves to library QRPLOBJ, an updated version is inserted into the service program's library, and current activations keep using the QRPLOBJ version.
Allowed environments: *ALL.
Positional parameters: 2.
Restrictions
- Requires *USE and *ADD authority to the library of the service program.
- Requires *USE, *OBJMGT and *OBJEXIST authority to the service program.
- Must be the owner (or a member of the owning group), or have *ALLOBJ special authority.
- Requires *USE authority to the replacing *MODULE objects (and *EXECUTE on their library), to any *SRVPGM named on BNDSRVPGM, and to any *BNDDIR named on BNDDIR (with *EXECUTE on those libraries and on objects used to resolve their symbols).
- Requires *OBJOPR and *READ authority to the file named on SRCFILE.
Parameters
SRVPGM
Service program
Specifies the service program that is to be updated. This is a required parameter.
*USRLIBL- Only the libraries in the user portion of the job's library list are searched.
*CURLIB- The current library for the job is searched. If none is set, the QGPL library is used.
Qualified parts (object, then library; write LIBRARY/OBJECT)
Service program
Service program
Library
Library
Suggested / special values:
*USRLIBL, *CURLIB
MODULE
Module
Specifies the existing *MODULE objects that replace the modules of the same name in the bound service program. Up to 300 names can be specified. If two or more modules share a name, RPLLIB determines which is replaced.
Suggested / special values:
*NONE
*NONE- No modules are specified. Use this when only BNDSRVPGM or BNDDIR is being changed; the existing module is used.
*ALL- All modules of the same name, to which the user has authority, replace the modules of the bound service program.
*LIBL- All libraries in the library list for the current thread are searched until the first match is found.
*CURLIB- The current library for the job is searched. If none is set, the QGPL library is used.
*USRLIBL- Only the libraries in the user portion of the job's library list are searched.
Qualified parts (object, then library; write LIBRARY/OBJECT)
Module
Module
Suggested / special values:
*ALL
Library
Library
Suggested / special values:
*LIBL, *CURLIB, *USRLIBL
EXPORT
Export
Specifies the variables and procedures to be exported from the updated service program. It also specifies whether new signatures identifying the export sequence are created.
Allowed values:
*CURRENT, *SRCFILE, *ALL
*CURRENT- The currently exported variables, procedures and signatures continue to be exported. No new signatures are created.
*SRCFILE- The source member named by SRCFILE/SRCMBR or SRCSTMF contains EXPORT statements that identify what to export.
*ALL- All variables and procedures exported from the modules of the service program are exported, and a new signature is created if the export set changes.
SRCFILE
Export source file
Qualified parts (object, then library; write LIBRARY/OBJECT)
Export source file
Export source file
Library
Library
Suggested / special values:
*LIBL, *CURLIB
SRCMBR
Export source member
Suggested / special values:
*SRVPGM
SRCSTMF
Export source stream file
RPLLIB
Replacement library
Specifies the method used to select the module to be replaced when two or more modules of the bound service program have the name specified on the MODULE parameter.
Suggested / special values:
*ONLY, *FIRST, *MODULE
*ONLY- The service program must contain only one module of that name, which is replaced; otherwise an exception is signaled and nothing is updated.
*FIRST- The first module of the specified name in the module list of the bound service program is replaced.
*MODULE- The module that originated from the same library as the replacing module is replaced; if none did, an exception is signaled.
Qualified parts (object, then library; write LIBRARY/OBJECT)
Replacement library
Replacement library
BNDSRVPGM
Bind service program
Suggested / special values:
*NONE, *SAME
Elements in order
Service program
Service program
Qualified parts (object, then library; write LIBRARY/OBJECT)
Service program
Service program
Suggested / special values:
*ALL
Library
Library
Suggested / special values:
*LIBL
Activation
Activation
Allowed values:
*SAME, *IMMED, *DEFER
SRVPGMLIB
Bound *SRVPGM library name
Suggested / special values:
*SAME, *LIBL
Qualified parts (object, then library; write LIBRARY/OBJECT)
Bound *SRVPGM library name
Bound *SRVPGM library name
BNDDIR
Binding directory
Suggested / special values:
*NONE, *SAME
Qualified parts (object, then library; write LIBRARY/OBJECT)
Binding directory
Binding directory
Library
Library
Suggested / special values:
*LIBL, *CURLIB, *USRLIBL
ACTGRP
Activation group
Suggested / special values:
*SAME
OPTION
Creation options
Allowed values:
*GEN, *NOGEN, *DUPPROC, *NODUPPROC, *DUPVAR, *NODUPVAR, *WARN, *NOWARN, *TRIM, *NOTRIM, *RSLVREF, *UNRSLVREF, *NOEVENTF, *EVENTF
DETAIL
Listing detail
Allowed values:
*NONE, *BASIC, *EXTENDED, *FULL
Examples
UPDSRVPGM SRVPGM(WORKDOC) MODULE(BIN/TASKTWO) RPLLIB(*MODULE)
Replaces module TASKTWO in service program WORKDOC with TASKTWO from library BIN, but only if the module being replaced originally came from library BIN.
Generated from os/cl/catalog/UPDSRVPGM.json and os/cl/help/UPDSRVPGM.json.