In what circumstances i need use UPDPGM and UPDSRVPGM

235 pts.
Tags:
*SRVPGM
AS/400
RPG ILE
RPGILE Dynamic Calls
UPDSRVPGM
  

Hi everybody,[o:p][/o:p]

Explain me this question:[o:p][/o:p]

I have 2 modules 1 service program and 1 program, so I need make a  few modifications in a program, after that I need again make the same creation like in the begin or with UPDPGM and UPDSRVPGM I have the right result? And I made this? [o:p][/o:p]

Thanks.[o:p][/o:p]

  

Answer Wiki

Thanks. We'll let you know when a new response is added.

First I have a few questions:

1.) Is the program made up of the two modules?

2.) Are either of the modules in the service program?

3.) Does the program have its own code and it just uses the two modules and they are not in the service program?

If the answer to question 1 is yes, then make the changes to the modules, compile them and then issue the UPDPGM command.

If the answer to 2 is yes then, make the changes to the modules, compile them and then issue the UPDSRVPGM command followed by the UPDPGM command.

If the answer to 3 is yes then make the changes to the program, recompile it. If, for some reason, you created the program with the CRTPGM you will need to issue the UPDPGM command after a successful compile.

Discuss This Question: 1  Reply

 
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
    If the program and service program already exist, then you can use UPDPGM or UPDSRVPGM after compiling a changed module. As far as I know, this is always possible as long as you're compiling the modules that are already in the program or service program. It's your choice to use UPDPGM or UPDSRVPGM or to recompile and recreate them. Personally, I always try to use the UPD commands after a program or service program exists. This helps me to stay conscious of the fact that only modules are ever compiled. After a short while, it becomes an automatic thought. The structure of how it all works stays clear in my mind. Tom
    125,585 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