ILE C/C++ Programmer's Guide

Compiling and Binding the Service Program

To create the service program SERVICE1, issue the following commands:

CRTCPPMOD MODULE(MYLIB/SEARCH) SRCSTMF(search.cpp)
CRTCPPMOD MODULE(MYLIB/WHERE) SRCSTMF(where.cpp)
CRTSRVPGM SRVPGM(MYLIB/SERVICE1) MODULE(MYLIB/SEARCH MYLIB/WHERE) EXPORT(*ALL)

By default, the binder creates the service program in your current library.

The parameter EXPORT(*ALL) specifies that all data and procedures exported from the modules are also exported from the service program.


[ Top of Page | Previous Page | Next Page | Table of Contents ]