ILE C/C++ Programmer's Guide
You can update or change a service program in the same way you modify a
program object. In other words, you can:
- Update the service program, using the Update Service Program (UPDSRVPGM)
command.
- Change the optimization level, using the Change Service Program
(CHGSRVPGM) command
- Remove observability (using CHGSRVPGM)
- Reduce the size, using the Compress Object (CPROBJ) command
See Updating a Module or a Program Object for more information on any of the above points.
If you use binder language, a service program can be updated without
requiring programs calling it to be recompiled. For example, to add a
new procedure to an existing service program:
- Create a module object for the new procedure.
- Modify the binder-language source file to handle the interface associated
with the new procedure. Add any new export statements following the
existing ones. See Updating a Service Program Export List for details on modifying binder-language source
files.
- Recreate the original service program and include the new module.
Now existing programs can access the new functions. Because the old
exports are in the same order, they can still be used by the existing
programs. Until it is necessary to also update the existing programs,
they do not have to be recompiled.
[ Top of Page | Previous Page | Next Page | Table of Contents ]
(C) Copyright IBM Corporation 1992, 2005. All Rights Reserved.