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

Parameters

PGM Program

Specifies the bound program that is to be updated. This is a required parameter.

Type
*QUAL
Required
Yes
Case
Uppercase
*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

Type
*NAME
Required
No
Length
10
Case
Uppercase

Library Library

Type
*NAME
Required
No
Default
*USRLIBL
Length
10
Case
Uppercase

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.

Type
*QUAL
Required
Yes
List limit
300
Case
Uppercase

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

Type
*GENERIC
Required
No
Length
10
Case
Uppercase

Suggested / special values: *ALL

Library Library

Type
*NAME
Required
No
Default
*LIBL
Length
10
Case
Uppercase

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.

Type
*QUAL
Required
No
Default
*ONLY
Case
Uppercase

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

Type
*NAME
Required
No
Length
10
Case
Uppercase

BNDSRVPGM Bind service program

Type
*ELEM
Required
No
Default
*SAME
List limit
300
Case
Uppercase

Suggested / special values: *NONE, *SAME

Elements in order

Service program Service program

Type
*QUAL
Required
No
Case
Uppercase
Qualified parts (object, then library; write LIBRARY/OBJECT)

Service program Service program

Type
*GENERIC
Required
No
Length
10
Case
Uppercase

Suggested / special values: *ALL

Library Library

Type
*NAME
Required
No
Default
*LIBL
Length
10
Case
Uppercase

Suggested / special values: *LIBL

Activation Activation

Type
*CHAR
Required
No
Default
*SAME
Length
6
Case
Uppercase

Allowed values: *SAME, *IMMED, *DEFER

SRVPGMLIB Bound *SRVPGM library name

Type
*QUAL
Required
No
Default
*SAME
Case
Uppercase

Suggested / special values: *SAME, *LIBL

Qualified parts (object, then library; write LIBRARY/OBJECT)

Bound *SRVPGM library name Bound *SRVPGM library name

Type
*NAME
Required
No
Length
10
Case
Uppercase

BNDDIR Binding directory

Type
*QUAL
Required
No
Default
*SAME
List limit
50
Case
Uppercase

Suggested / special values: *NONE, *SAME

Qualified parts (object, then library; write LIBRARY/OBJECT)

Binding directory Binding directory

Type
*NAME
Required
No
Length
10
Case
Uppercase

Library Library

Type
*NAME
Required
No
Default
*LIBL
Length
10
Case
Uppercase

Suggested / special values: *LIBL, *CURLIB, *USRLIBL

ACTGRP Activation group

Type
*NAME
Required
No
Default
*SAME
Length
10
Case
Uppercase

Suggested / special values: *SAME

OPTION Creation options

Type
*CHAR
Required
No
Length
10
List limit
7
Case
Uppercase

Allowed values: *GEN, *NOGEN, *DUPPROC, *NODUPPROC, *DUPVAR, *NODUPVAR, *WARN, *NOWARN, *TRIM, *NOTRIM, *RSLVREF, *UNRSLVREF, *NOEVENTF, *EVENTF

DETAIL Listing detail

Type
*CHAR
Required
No
Default
*NONE
Length
9
Case
Uppercase

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.

IBM command documentation

Generated from os/cl/catalog/UPDPGM.json and os/cl/help/UPDPGM.json.