How to add one Module to the existing Service Program

695 pts.
Tags:
*SRVPGM
AS/400 administration
RPG
RPG/400
RPGLE
Hi, I want to add or append one new module called 'C' to the already existing service program(SRVPGM) For Example: I have one service program called SRVPGM consits of 2 Modules are A, B. Now i want to add one new Module called 'C' to SRVPGM. how can i do this ?

Answer Wiki

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

First go to:

<a href=”http://www.itjungle.com/mpo/mpo092503-story02.html”></a>
<a href=”http://www.itjungle.com/mpo/mpo102303-story02.html”></a>
<a href=”http://www.itjungle.com/mpo/mpo120403-story01.html”></a>

Then look at the code below.

STRPGMEXP PGMLVL(*current)
EXPORT SYMBOL(module_a)
EXPORT SYMBOL(module_b)
EXPORT SYMBOL(module_c)
ENDPGMEXP

STRPGMEXP PGMLVL(*PRV)
EXPORT SYMBOL(module_a)
EXPORT SYMBOL(module_b)
ENDPGMEXP

For some reason the links are not coming through.

Here they are again. Just copy and paste them to your broswer.

http://www.itjungle.com/mpo/mpo092503-story02.html

http://www.itjungle.com/mpo/mpo102303-story02.html

http://www.itjungle.com/mpo/mpo120403-story01.html

Discuss This Question: 3  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
  • Mohan K
    hi, Thanks alot for your great information about Service programs. However i have small question about it, i have service program called "MYSRVPGM" consists of Modules 'A','B' once these modules(A, B) bound to service program(MYSRVPGM), in the above link they have mentioned that we can delete our modules which are already bounded with service program. Assume that i have deleted A, B modules after bound with Service program. Next time if i want to add one extra module 'C' to the MYSRVPGM, i dont have objects(A, B) of type *MODULE since i have deleted those objects from my library, without recreating MYSRVPGM with module 'C' is there any way to update my existing service program with module 'C' ?
    695 pointsBadges:
    report
  • Teandy
    No, you must recreate the service program to include the new module. The second article in the list I gave you goes over this in more detail. This is why I do not delete the module objects. But then, we are only use 18 % of 1.2 TB so space is not really a problem. However, if you are concerned about disk space, just recompile the deleted modules, recreate the service program and then deleted the module objects again.
    5,860 pointsBadges:
    report
  • Mohan K
    Thanks for your valuable informayion.
    695 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