Creating a service program involves compiling source code into module objects, and then binding one or more module objects into a service program object.with the Create Service Program (CRTSRVPGM) command. You can also use modules created with other ILE language compilers, such as ILE C/C++, ILE RPG/400, or ILE COBOL/400.
Considerations when Creating a Service Program
When creating a service program, you should consider:
If the interface to a service program changes, you may have to rebind all programs bound to the original service program. However, depending on the changes and how you implement them, you may be able to reduce the amount of rebinding if you create the service program using binder language. In this case, after updating the binder language source to identify new exports, you need to rebind only those programs that require the new exports.
Specifying Parameters for the CRTSRVPGM Command
Tablelists CRTSRVPGM command parameters and their default values.. For a detailed description of the parameters, refer to the CL Reference CHKxxx through CVTxxx Commands: SC41–5724. Each parameter has default values which are used whenever you do not specify your own values.
Parameters and Default Values for CRTSRVPGM Command
Updating or Changing a Service Program
You can update or change a service program in the same way you modify a program object. In other words, you can:
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:
Now existing programs can access the new functions. Since 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.
Using Related CL commands
The following CL commands can be used with service programs:
IBM-ILE Related Interview Questions
|IBM - RPG Interview Questions||IBM DB2 Interview Questions|
|DB2 Using SQL Interview Questions||IBM Mainframe Interview Questions|
|IBM AIX 7 Administration Interview Questions||AS400 Interview Questions|
|Automatic Storage Management (ASM) Interview Questions||Mainframe DB2 Interview Questions|
|Rpgle Interview Questions|
All rights reserved © 2020 Wisdom IT Services India Pvt. Ltd
Wisdomjobs.com is one of the best job search sites in India.