Examples: Service-program-based APIs

These program examples demonstrate the use of service-program-based APIs in several different high-level language programs. The example APIs represent two general functions of APIs: change and retrieve.

The examples use the registration facility APIs. The registration facility APIs provide a means for storing and retrieving information about exit points and exit programs. An exit point is a specific point in a system function or program where control is passed to one or more exit programs. An exit program is a program to which control is passed from an exit point. The examples show how to manipulate exit points and exit programs, how to retrieve information about exit points and exit programs that are stored with the registration facility, and how to call an exit program.

Several of the registration facility APIs manipulate the information that the registration facility repository contains. One API is provided for retrieving information from the repository.

For a detailed description of how to use the API, see API information format. These descriptions and the programs that support them are in RPG. You can, however, view the same programs in different languages.