CRTCPPMOD MODULE(MYLIB/COST1) SRCSTMF(cost1.cpp) CRTSRVPGM SRVPGM(MYLIB/COST) MODULE(MYLIB/COST1) SRCFILE(MYLIB/QSRVSRC) SRCMBR(BND) DETAIL(*EXTENDED)
CRTCPPMOD MODULE(MYLIB/COSTDPT1) SRCSTMF(costdpt1.cpp) CRTPGM PGM(MYLIB/COSTDPT1) MODULE(MYLIB/COSTDPT1) BNDSRVPGM(MYLIB/COST)
CRTCPPMOD MODULE(MYLIB/COST2) SRCSTMF(cost2.cpp) CRTSRVPGM SRVPGM(MYLIB/COST) MODULE(MYLIB/COST1 MYLIB/COST2) SRCFILE(MYLIB/QSRVSRC) SRCMBR(BND) DETAIL(*EXTENDED)
It is necessary to re-create the service program COST, using the two modules COST1 and COST2 and the updated version of the binder language BNDUPD, so that it supports the new cost2() function. Program COSTDPT1, which used COST before it was re-created, remains unchanged.
In order to update service program COST, it is necessary to re-create it from the two modules COST1 and COST2, using the updated version of the binder language BNDUPD. The *EXTENDED option in the DETAIL parameter creates an extended output listing, so that you can look at the current and previous signature of COST.
CRTCPPMOD MODULE(MYLIB/COSTDPT2) SRCSTMF(costdpt2.cpp) CRTPGM PGM(MYLIB/COSTDPT2) MODULE(MYLIB/COSTDPT2) BNDSRVPGM(MYLIB/COST)
(C) Copyright IBM Corporation 1992, 2005. All Rights Reserved.