|
When I tried to use SRVPGMLIB to change my program's service program's library, UPDPGM failed with CPF5CA7, saying "SRVPGMLIB must be *SAME when ALWLIBUPD is *NO."
On CRTPGM, there are two parameters that relate to this. They are, with their defaults:
Allow update . . . . . . . . . . ALWUPD *YES Allow *SRVPGM library update . . ALWLIBUPD *NOUnfortunately, CRTBNDRPG, which I use, does not have either of these parameters and apparently uses the defaults. DSPPGM for my programs created with CRTBNDRPG show this:
Allow update . . . . . . . . . . . . . . . . . : *YES Allow bound *SRVPGM library name update . . . : *NOSo, if you use CRTPGM, you can specify ALWLIBUPD(*YES) and use UPDPGM's SRVPGMLIB to change the bound service program's library.
If you use CRTBNDRPG, you need to run CRTBNDRPG again with the desired service program name and library.
Mel Rothman Mel Rothman, Inc. Brad Stone wrote:
Thanks, Mel. I tried this, but when I do a DSPPGM it still shows *LIBL for the service program in question even though I specify the library. I may try changing my binding dir temporarily to see if that helps. Brad On Wed, 05 Oct 2005 11:25:55 -0500 Mel Rothman <mel@xxxxxxxxxxxxxx> wrote:Try the BNDSRVPGM parameter of the UPDPGM command. Specify *NONE for the MODULE parameter if you don't wish to make any module changes. Mel Rothman Mel Rothman, Inc. Brad Stone wrote:Let's say I have PGMA that is compiled to use SRVPGM1,butit's specified to use the *LIBL to find it. Is there a way to change this to specify a specificlibrarywhere it should find SRVPGM1, or does that require a recompile? Thanks!--Bradley V. Stone BVS.Tools www.bvstools.com
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.