In this example you create a program COMPUTE using CRTBNDRPG to which you bind a service program at program-creation time.
Assume that you want to bind the program COMPUTE to services which you have purchased to perform advanced mathematical computations. The binding directory to which you must bind your source is called MATH. This directory contains the name of a service program that contains the various procedures that make up the services.
CRTBNDRPG PGM(MYLIB⁄COMPUTE)
DFTACTGRP(*NO) ACTGRP(GRP1) BNDDIR(MATH)
The source will be bound to the service program specified in the binding directory MATH at program-creation time. This means that calls to the procedures in the service program will take less time than if they were dynamic calls.
For more information on service programs, see Creating a Service Program.