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.
(C) Copyright IBM Corporation 1992, 2005. All Rights Reserved.