Previous Topic: CREATE MODULE CommandNext Topic: CREATE PACKAGE Command (DB2 Only)


Operand Definitions

Operand

Description

modname

One‑ to seven‑character name given to the generated modules.

name

Name of the program or panel to convert to module format. The program or panel must be in production status to be converted. If there are multiple versions, the one that is in production status is the one that is converted.

Note: For PANELs, if you omit the VERSION clause, the PROD version is used if it can be found by accessing Datadictionary. For PANEL MODULEs created from VLS objects that were Object Transported, the VERSION clause is necessary, because the Object Transport did not update Datadictionary. It is advisable to always specify the VERSION clause for panels.

The names of the created modules are the one‑ to seven‑character modname with an one‑character suffix. The suffixes are:

These suffixes are used in the following cases:

When dealing with non‑Ideal services, the user must account for all three program modules and must specify the appropriate module suffix for each of these parts, and for any panel modules.

Important! Do not perform an ALTER PROGRAM command in a program that was the object of a CREATE MODULE. Perform the ALTER PROGRAM before the CREATE MODULE if you need to alter the database ID.