When a program is compiled and bound a CONTOKEN is stamped on the package as well as embedded in the load module. During program execution the load module passes the CONTOKEN to DB2 to find the correct version of the package. If the contokens match, the program works. If they do not match a -805 occurs and the correct version of the package needs to be found. Using the CONTOKEN or a TIMESTAMP users can check if a match is found in the load module.
What timestamp does the CONTOKEN on a Package List (PK L) report represent?
The CONTOKEN shown on the Package Detail Report in RC/Query is from SYSIBM.SYSPACKAGES. This represents the timestamp when the package program was precompiled. The RC/Query detailed screen also contains the precompiled date. Either the CONTOKEN or precompile date can be searched for in the load module to ensure there is a match.