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

Parameters

SRVPGM Service program

Specifies the service 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)

Service program Service 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 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.

Type
*QUAL
Required
Yes
List limit
300
Case
Uppercase

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

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

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.

Type
*CHAR
Required
No
Default
*CURRENT
Length
8
Case
Uppercase

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

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

Export source file Export source file

Type
*NAME
Required
No
Default
QSRVSRC
Length
10
Case
Uppercase

Library Library

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

Suggested / special values: *LIBL, *CURLIB

SRCMBR Export source member

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

Suggested / special values: *SRVPGM

SRCSTMF Export source stream file

Type
*CHAR
Required
No
Length
50
Case
Uppercase

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.

Type
*QUAL
Required
No
Default
*ONLY
Case
Uppercase

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

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

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.

IBM command documentation

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