Command reference / prog
UPDPGM
Update Program
Replaces modules of an ILE bound program with existing module objects on the system, without changing or recompiling the bound program. Other jobs can run the program during the update: the running program is moved to library QRPLOBJ, an updated copy is inserted into the 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 bound program.
- Requires *USE, *OBJMGT and *OBJEXIST authority to the bound 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).
Parameters
PGM
Program
Specifies the bound 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)
Program
Program
Library
Library
Suggested / special values:
*USRLIBL, *CURLIB
MODULE
Module
Specifies the names of the existing *MODULE objects that replace the modules of the same name in the bound program. If two or more modules share a name, RPLLIB determines which is replaced. Up to 300 names can be specified.
Suggested / special values:
*NONE
*NONE- No modules are specified.
*ALL- All modules of the same name, to which the user has authority, replace the modules of the bound 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
RPLLIB
Replacement library
Specifies the method used to select the module to be replaced when two or more modules of the bound program have the name specified on the MODULE parameter.
Suggested / special values:
*ONLY, *FIRST, *MODULE
*ONLY- The 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 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
UPDPGM PGM(STAR) MODULE(SKY/NOVA) RPLLIB(*FIRST)
Replaces the first module named NOVA in program STAR with the module NOVA from library SKY.
Generated from os/cl/catalog/UPDPGM.json and os/cl/help/UPDPGM.json.