× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: RE: service program question
  • From: "Njål Fisketjøn" <n.f@xxxxxxx>
  • Date: Thu, 19 Jul 2001 20:20:41 +0200
  • Importance: Normal

Smith, Mike wrote:

> 
> What is the process for removing a procedure from a service program and
> making it into its own service program.  
> 
> i want to be careful because this is in production and i don't 
> want to cause
> any problems.  
> 
> i have a procedure within my service program that has global variables.
> iwant to remove this into its own service program.  i just think that as i
> add more procedures to this service program, the global variables will
> clutter it up.  
> 
> So i've decided that if my procedure needs globals, then it will 
> be its own
> srv pgm.  

Wouldn't it be sufficient to place the procedure in it's own module?
Unless you're exporting data (variables) I cannot see any benefit of placing
the procedure in it's own service program.

If you want to move to to a different service program, you will have to use
the "version stamping" feature of the binder source to rename the "old
procedure" to something like oldxxxx or whatever so that it doesn't collide
with the "new procedure" when both service programs are used in the same 
program.

example:
STRPGMEXP  PGMLVL(*CURRENT) SIGNATURE('FLI V2')
EXPORT     SYMBOL(OLDGetWayP)
EXPORT     SYMBOL(OLDGetLegs)
...

STRPGMEXP  PGMLVL(*PRV) SIGNATURE('FLI V1')
EXPORT     SYMBOL(FliGetWayP)
EXPORT     SYMBOL(FliGetLegs)
...


+---
| This is the RPG/400 Mailing List!
| To submit a new message, send your mail to RPG400-L@midrange.com.
| To subscribe to this list send email to RPG400-L-SUB@midrange.com.
| To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.