|
|
ALLBASE/SQL COBOL Application Programming Guide: HP 9000 Computer Systems > Chapter 1 Getting Started with ALLBASE/SQL Programming in COBOLMaintaining ALLBASE/SQL Programs |
|
After ALLBASE/SQL COBOL programs are in production use, changes in applications, personnel, or databases may necessitate:
Minor modifications to programs in use can often be made right on the production machine and production DBEnvironment during hours the production DBEnvironment use is minimal. Major program modifications, because they are more time consuming, are usually made on a development machine and development DBEnvironment. In either case, the OWNER of the program's module or a DBA preprocesses the revised program and replaces the old module with a new one. Existing RUN authorities can be either preserved or revoked. Dropping old modules and preserving or revoking RUN authorities can be done either by using the DROP MODULE command in ISQL or when you invoke the preprocessor. The PRESERVE option of the DROP MODULE command retains any existing RUN authorities for the module when it is deleted from the system catalog:
To delete a module and any existing RUN authorities in ISQL, simply omit the PRESERVE option. You can also drop a module and revoke any existing run authorities for it at preprocessing time. The -d option tells the preprocessor to drop any existing modules named modulename; if you omit the -d option, a new module is created only if a module named modulename does not exist.
This invocation line drops any existing module named modulename but retains any related RUN authorities. To revoke the run authorities, you would specify the -r (revoke) option in the command string. The DROP MODULE command is also useful in conjunction with revised programs whose modules must be installed in a DBEnvironment different from that on which preprocessing occurred. Before using the INSTALL command to store the new module, you drop the existing module using the DROP MODULE command, preserving or dropping related RUN authorization as required. Once a program is in production use, the following authorization changes may be necessary:
Revoking CONNECT authority requires DBA authorization:
Revoking RUN authority requires either module OWNER or DBA authority:
When an application program becomes obsolete, you use the DROP MODULE command to both remove the module from any DBEnvironment where it is stored and revoke any related RUN authorities:
Related RUN authorities are automatically revoked when you do not use the PRESERVE option of this command. |
|