DB2 Server for VSE & VM: Application Programming


Distributing Packages across Like and Unlike Systems

To run your application program on another DB2 Server for VSE & VM database manager, you can simply distribute its load module and the DB2 Server for VSE & VM package. (You do not have to distribute the source code and then preprocess and compile it on the other system). Reload the package to all application servers that your package accesses, and send the load module to all DB2 Server for VSE & VM application requesters that your program accesses. You can unload the package to be distributed from the application server into a file, and subsequently reload the file into the new application server. Only the owner of the package or the database administrator can unload or reload the package.

If the package is distributed among application servers that are at different release levels of the system or are non-DB2 Server for VM or DB2 Server for VSE servers, a run-time error occurs if the package uses a feature that is not available on the application server on which the package was reloaded. To ensure that the load module and the package that you are distributing are meant to be used together, use the preprocessor parameter CTOKEN to place the same consistency token in both the load module and the package. Refer to Preprocessing the Program. If the two tokens do not match, the application server stops the program from running. For information on distributing packages on both like and unlike systems, and on distributing packages using DRDA protocol, refer to the DB2 Server for VSE & VM Database Services Utility manual.


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]