How to update service pgm library ?

1870 pts.
Tags:
AS/400
ILERPG
UPDPGM is great for module updates. This time I want to switch the (main-not sure if you can have multiple) service program to be the same name but in another library. I'd also like to be able to change it back to how it was if necessary. AS400 ILERPG. It is a CGI web inquiry (doubt that this matters).

Software/Hardware used:
AS400

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Discuss This Question: 2  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • TomLiotta
    It kind of depends on how the program was compiled. A CRTPGM command can pick up a service program from *LIBL when you create the program. You can also explicitly qualify the service program library if you want a specific version. In addition, you can specify CRTPGM ALWLIBUPD(*NO|*YES) to restrict a library change or not for service programs. You can see the service program library attribute on the first section of the DSPPGM output for the program. Scroll to the second screen and look for the heading "Allow bound *SRVPGM library name update". I would expect a CGI program to say *NO. Otherwise it could be a real security problem. You might need to compile the modules and create the program yourself if you want it to allow any kind of dynamic service program changes. You might also save the current service program, put yours in its place temporarily, and restore the original one later. Tom
    125,585 pointsBadges:
    report
  • aceofdelts
    Thanks Tom You were correct about that NO for the library change I created a new pgm (clone of the current one) and changed the calling (not bound) pgm to instead call the clone. This worked. Even better, switching to the CGIDEV2 version of the service pgm fixed that memory bug (in my prior question). As always, thanks so much for your comments & guidence. Mike
    1,870 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following