In general, you can update a program by replacing modules as needed. You do not have to re-create the program object. The ability to replace specific modules is helpful if, for example, you are supplying an application to other sites that are already using the program. You need only send the revised modules, and the receiving site can update the application using the UPDPGM and UPDSRVPGM commands.
The update commands work with both program and module objects. The parameters for these commands are very similar to those for the Create Program (CRTPGM) command. For example, to replace a module in a program, you would enter the module name for the MODULE parameter and the library name.
To use the UPDPGM command, the modules to be replaced must be located in the same libraries they were in when the program was created. You can specify that all modules, or only some subsets of modules, are to be replaced.
(C) Copyright IBM Corporation 1992, 2005. All Rights Reserved.